<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - gl_marshal.py: generating duplicate declaration specifiers"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100227">100227</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>gl_marshal.py: generating duplicate declaration specifiers
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lemody@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>