[New-bugs-announce] [issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h
report at bugs.python.org
Tue Feb 8 04:16:06 CET 2011
New submission from Campbell Barton <ideasman42 at gmail.com>:
Hi, Im buildiong blender3d with -Werror and python 3.2 gives an error which doesnt happen in 3.1.
Tested with SVN r88378. on linux.
cc1: warnings being treated as errors
In file included from /opt/py32/include/python3.2d/Python.h:52:0,
/opt/py32/include/python3.2d/pyatomic.h: In function '_Py_ANNOTATE_MEMORY_ORDER':
/opt/py32/include/python3.2d/pyatomic.h:59:48: error: unused parameter 'address'
There are 2 ways to solve this:
pyatomic.h could include the line:
Or the macro's which do nothing could be changed from...
#define _Py_ANNOTATE_HAPPENS_BEFORE(blah) /* empty */
#define _Py_ANNOTATE_HAPPENS_BEFORE(blah) (void)blah
title: _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h
type: compile error
versions: Python 3.2
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce