xserver-multidpi/hw/xwin/glx
Jon TURNEY 0ea65df8a5 hw/xwin: Fix some of the warnings in generated gl wrapper code
Fix some of the warnings in generated gl wrapper code:
- glWinResolveHelper takes a const char * argument
- ensure formal parameter names don't collide with reserved names or shadow
global declarations (e.g. near, far, index (from string.h), remainder (from
math.h), pointer (from Xdefs.h) by postpending a '_'.

generated_gl_wrappers.c:13:3: warning: passing argument 2 of 'glWinResolveHelper' discards qualifiers from pointer target type
glwrap.c:70:1: note: expected 'char *' but argument is of type 'const char *'
[repeated many times]
generated_gl_wrappers.c: In function 'glVertexAttrib1dARBWrapper': generated_gl_wrappers.c:6884:47: warning: declaration of 'index' shadows a global declaration [-Wshadow]
generated_gl_wrappers.c:6886:3: warning: passing argument 2 of 'glWinResolveHelper' discards qualifiers from pointer target type
[repeated many times]

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2012-10-16 22:29:48 +01:00
..
.gitignore hw/xwin: wglext.h should be provided by w32api, rather than downloaded 2011-04-28 17:53:39 +01:00
gen_gl_wrappers.py hw/xwin: Fix some of the warnings in generated gl wrapper code 2012-10-16 22:29:48 +01:00
glwindows.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glwrap.c hw/xwin: Fix some of the warnings in generated gl wrapper code 2012-10-16 22:29:48 +01:00
indirect.c hw/xwin/glx: Fix using Mask as a formal parameter shadows a global typedef of the same name 2012-10-16 21:25:21 +01:00
Makefile.am Fix 'make distcheck' for hw/xwin 2012-10-11 12:54:12 +01:00
wgl_ext_api.c hw/xwin/glx: Don't spam log with wglwrap symbol resolution status at startup 2011-07-07 18:00:34 +01:00
wgl_ext_api.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
winpriv.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
winpriv.h Cygwin/X: AIGLX using native WGL 2010-04-28 14:26:52 +01:00