VirtualBox

Changeset 69040 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Oct 11, 2017 3:37:05 PM (7 years ago)
Author:
vboxsync
Message:

Additions/common/crOpenGL: fix a double const declaration.
bugref:8192: gcc warnings

Recent gcc versions (7.0 and later?) do not like seeing const used twice in a
parameter declaration. Fix this once in Additions/common/crOpenGL/glx.c and
dri_glx.h.

Location:
trunk/src/VBox/Additions/common/crOpenGL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/dri_glx.h

    r62521 r69040  
    135135extern DECLEXPORT(GLXFBConfig *) VBOXGLXTAG(glXChooseFBConfig)(Display *dpy, int screen, ATTRIB_TYPE *attrib_list, int *nelements);
    136136extern DECLEXPORT(GLXPbuffer) VBOXGLXTAG(glXCreatePbuffer)(Display *dpy, GLXFBConfig config, ATTRIB_TYPE *attrib_list);
    137 extern DECLEXPORT(GLXPixmap) VBOXGLXTAG(glXCreatePixmap)(Display *dpy, GLXFBConfig config, Pixmap pixmap, const ATTRIB_TYPE *attrib_list);
     137extern DECLEXPORT(GLXPixmap) VBOXGLXTAG(glXCreatePixmap)(Display *dpy, GLXFBConfig config, Pixmap pixmap, ATTRIB_TYPE *attrib_list);
    138138extern DECLEXPORT(GLXWindow) VBOXGLXTAG(glXCreateWindow)(Display *dpy, GLXFBConfig config, Window win, ATTRIB_TYPE *attrib_list);
    139139extern DECLEXPORT(GLXContext) VBOXGLXTAG(glXCreateNewContext)
  • trunk/src/VBox/Additions/common/crOpenGL/glx.c

    r65791 r69040  
    10011001 */
    10021002DECLEXPORT(GLXPixmap)
    1003 VBOXGLXTAG(glXCreatePixmap)(Display *dpy, GLXFBConfig config, Pixmap pixmap, const ATTRIB_TYPE *attrib_list)
     1003VBOXGLXTAG(glXCreatePixmap)(Display *dpy, GLXFBConfig config, Pixmap pixmap, ATTRIB_TYPE *attrib_list)
    10041004{
    10051005    ATTRIB_TYPE *attrib;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette