[New-bugs-announce] [issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h
Campbell Barton
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,
from /data/src/blender/blender/source/blender/python/intern/bpy_app.h:27,
from /data/src/blender/blender/source/blender/python/intern/bpy_app.c:25:
/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:
(void)address;
Or the macro's which do nothing could be changed from...
#define _Py_ANNOTATE_HAPPENS_BEFORE(blah) /* empty */
to...
#define _Py_ANNOTATE_HAPPENS_BEFORE(blah) (void)blah
----------
messages: 128165
nosy: ideasman42
priority: normal
severity: normal
status: open
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>
<http://bugs.python.org/issue11147>
_______________________________________
More information about the New-bugs-announce
mailing list