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@lists.freedesktop.org
          Reporter: lem...@gmail.com
        QA Contact: mesa-dev@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to