[Mesa-dev] [Bug 100227] gl_marshal.py: generating duplicate declaration specifiers
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Mar 16 10:50:31 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=100227
Bug ID: 100227
Summary: gl_marshal.py: generating duplicate declaration
specifiers
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
Assignee: mesa-dev at lists.freedesktop.org
Reporter: lemody at gmail.com
QA Contact: mesa-dev at lists.freedesktop.org
generator is generating following code:
const const GLvoid * pointer = cmd->pointer;
that results later as compilation warning:
--- 8< ---
marshal_generated.c:15836:10: warning: duplicate 'const' declaration specifier
[-Wduplicate-decl-specifier] const const GLvoid * pointer = cmd->pointer;
--- 8< ---
I've tried to fix this by inserting const decl specifier only if p.string()
does not already start with 'const' but this will create new compilation
warnings like:
--- 8< ---
main/marshal_generated.c:29774:18: warning: initialization discards ‘const’
qualifier from pointer target type [-Wdiscarded-qualifiers]
GLbyte * v = cmd->v;
--- 8< ---
I'm filing this so that some Python guru can take a look at it.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170316/4ccef0a2/attachment.html>
More information about the mesa-dev
mailing list