[Mesa-dev] svga build warning

Dave Airlie airlied at gmail.com
Thu Mar 21 00:42:45 UTC 2019


src/gallium/winsys/svga/drm/vmw_screen.c: In function 'vmw_dev_compare':
src/gallium/winsys/svga/drm/vmw_screen.c:48:13: warning: In the GNU C
Library, "major" is defined
 by <sys/sysmacros.h>. For historical compatibility, it is
 currently defined by <sys/types.h> as well, but we plan to
 remove this soon. To use "major", include <sys/sysmacros.h>
 directly. If you did not intend to use a system-defined macro
 "major", you should undefine it after including <sys/types.h>.
    return (major(*(dev_t *)key1) == major(*(dev_t *)key2) &&
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Not sure how serious it is, just was looking at the CI build logs.

Dave.


More information about the mesa-dev mailing list