[Mesa-dev] [Bug 56710] New: src/mapi/glapi/glapitemp.h:1640:1: warning:=?UTF-8?Q?=20no=20previous=20prototype=20for=20=E2=80=98glReadBufferNV=E2=80=99=20?=[-Wmissing-prototypes]

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Nov 3 00:53:15 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=56710

          Priority: medium
            Bug ID: 56710
                CC: jfonseca at vmware.com, stereotype441 at gmail.com
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: src/mapi/glapi/glapitemp.h:1640:1: warning: no
                    previous prototype for ‘glReadBufferNV’
                    [-Wmissing-prototypes]
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: vlee at freedesktop.org
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: git
         Component: Mesa core
           Product: Mesa

mesa: 84b437213294ff4e1a3bcae2f9cbb36a9b4955c4 (master)

Several -Wmissing-prototypes compiler warnings have been introduced to the
SCons MinGW build.

$ scons platform=windows toolchain=crossmingw
[...]
  Compiling src/mapi/glapi/glapi_dispatch.c ...
In file included from src/mapi/glapi/glapi_dispatch.c:90:0:
src/mapi/glapi/glapitemp.h:1640:1: warning: no previous prototype for
‘glReadBufferNV’ [-Wmissing-prototypes]
src/mapi/glapi/glapitemp.h: In function ‘glShaderSource’:
src/mapi/glapi/glapitemp.h:4434:4: warning: passing argument 3 of
‘(__builtin_expect(_glapi_Dispatch != 0u, 1l) == 0l ? _glapi_get_dispatch() :
_glapi_Dispatch)->ShaderSourceARB’ discards ‘const’ qualifier from pointer
target type [enabled by default]
src/mapi/glapi/glapitemp.h:4434:4: note: expected ‘const GLcharARB **’ but
argument is of type ‘const GLchar * const*’
src/mapi/glapi/glapitemp.h: At top level:
src/mapi/glapi/glapitemp.h:4749:1: warning: no previous prototype for
‘glDrawBuffersNV’ [-Wmissing-prototypes]
src/mapi/glapi/glapitemp.h:4851:1: warning: no previous prototype for
‘glFlushMappedBufferRangeEXT’ [-Wmissing-prototypes]
src/mapi/glapi/glapitemp.h:4863:1: warning: no previous prototype for
‘glMapBufferRangeEXT’ [-Wmissing-prototypes]
src/mapi/glapi/glapitemp.h:4887:1: warning: no previous prototype for
‘glBindVertexArrayOES’ [-Wmissing-prototypes]
src/mapi/glapi/glapitemp.h:4899:1: warning: no previous prototype for
‘glGenVertexArraysOES’ [-Wmissing-prototypes]
src/mapi/glapi/glapitemp.h: In function ‘glMultiDrawElements’:
src/mapi/glapi/glapitemp.h:6197:4: warning: passing argument 4 of
‘(__builtin_expect(_glapi_Dispatch != 0u, 1l) == 0l ? _glapi_get_dispatch() :
_glapi_Dispatch)->MultiDrawElementsEXT’ discards ‘const’ qualifier from pointer
target type [enabled by default]
src/mapi/glapi/glapitemp.h:6197:4: note: expected ‘const GLvoid **’ but
argument is of type ‘const GLvoid * const*’
src/mapi/glapi/glapitemp.h: At top level:
src/mapi/glapi/glapitemp.h:7191:1: warning: no previous prototype for
‘glDeleteVertexArraysOES’ [-Wmissing-prototypes]
src/mapi/glapi/glapitemp.h:7219:1: warning: no previous prototype for
‘glIsVertexArrayOES’ [-Wmissing-prototypes]
src/mapi/glapi/glapitemp.h: In function ‘glTransformFeedbackVaryings’:
src/mapi/glapi/glapitemp.h:8685:4: warning: passing argument 3 of
‘(__builtin_expect(_glapi_Dispatch != 0u, 1l) == 0l ? _glapi_get_dispatch() :
_glapi_Dispatch)->TransformFeedbackVaryingsEXT’ discards ‘const’ qualifier from
pointer target type [enabled by default]
src/mapi/glapi/glapitemp.h:8685:4: note: expected ‘const char **’ but argument
is of type ‘const GLchar * const*’


dd3218d73b3ffba98b885709ef086577e7cb8594 is the first bad commit
commit dd3218d73b3ffba98b885709ef086577e7cb8594
Author: Paul Berry <stereotype441 at gmail.com>
Date:   Tue Oct 23 13:46:04 2012 -0700

    dispatch: Include GLES1-only functions in dispatch table.

    Previously dispatch table-related code was generated from gl_API.xml,
    so it did not include slots for GLES1-only functions (such as those
    taking fixed-point arguments).

    This patch generates dispatch table-related code from
    gl_and_es_API.xml, so that GLES1-only functions are included.  This
    paves the way for future patches that will unify the GLES1 dispatch
    table with the dispatch tables for the other APIs.

    The following generated files are affected:
    - glapi_x86.S
    - glapi_x86-64.S
    - glapi_sparc.S
    - glprocs.h
    - glapitemp.h
    - glapitable.h
    - glapi_gentable.c
    - dispatch.h
    - remap_helper.h

    Since this change affects makefiles, a full rebuild is required.

    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

    v2: Adjust dependencies to ensure that generated files will be rebuilt
    whenever any ES-related XML source files are changed.

    Reviewed-by: Chad Versace <chad.versace at linux.intel.com>

:040000 040000 f8e806d873dccc97bebb76e10290b52456f77ff2
ed5a3e86134872d8e8209087ee9461f34eeb88b4 M    src
bisect run success

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121103/f4a4032d/attachment-0001.html>


More information about the mesa-dev mailing list