<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><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#c3">Comment # 3</a>
              on <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">bug 100227</a>
              from <span class="vcard"><a class="email" href="mailto:bartosz.tomczyk86@gmail.com" title="Bartosz Tomczyk <bartosz.tomczyk86@gmail.com>"> <span class="fn">Bartosz Tomczyk</span></a>
</span></b>
        <pre>I agree with  Gustaw, that it should be changed to  "const GLvoid *const".

Something like that should work(not tested):

--- a/src/mapi/glapi/gen/gl_marshal.py
+++ b/src/mapi/glapi/gen/gl_marshal.py
@@ -177,11 +177,11 @@ class PrintCode(gl_XML.gl_print_base):
         with indent():
             for p in func.fixed_params:
                 if p.count:
-                    out('const {0} * {1} = cmd->{1};'.format(
-                            p.get_base_type_string(), p.name))
+                    out('const {0} * const {1} = cmd->{1};'.format(
+                            p.get_base_type_string().lstrip('const'), p.name))
                 else:
                     out('const {0} {1} = cmd->{1};'.format(
-                            p.type_string(), p.name))
+                            p.type_string().lstrip('const'), p.name))
             if func.variable_params:
                 for p in func.variable_params:
                     out('const {0} * {1};'.format(</pre>
        </div>
      </p>


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

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