[cairo-bugs] [Bug 88050] New: Compiler warning in cairo-gl.h undefined #if check

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 5 04:00:27 PST 2015


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

            Bug ID: 88050
           Summary: Compiler warning in cairo-gl.h undefined #if check
           Product: cairo
           Version: unspecified
          Hardware: All
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: medium
         Component: gl backend
          Assignee: cairo-bugs at cairographics.org
          Reporter: kwm at rainbow-runner.nl
        QA Contact: cairo-bugs at cairographics.org

Created attachment 111763
  --> https://bugs.freedesktop.org/attachment.cgi?id=111763&action=edit
Wrap the CAIRO_HAS_*_FUNCTIONS of the #if checks in a defined()

When building a program that uses the cairo-gl.h from cairo 1.14.0 with clang
3.5. The compiler prints out the following warnings:

/usr/local/include/cairo/cairo-gl.h:95:5: warning: 'CAIRO_HAS_GLX_FUNCTIONS' is
not defined, evaluates to 0 [-Wundef]
#if CAIRO_HAS_GLX_FUNCTIONS
    ^
/usr/local/include/cairo/cairo-gl.h:113:5: warning: 'CAIRO_HAS_WGL_FUNCTIONS'
is not defined, evaluates to 0 [-Wundef]
#if CAIRO_HAS_WGL_FUNCTIONS
    ^
/usr/local/include/cairo/cairo-gl.h:129:5: warning: 'CAIRO_HAS_EGL_FUNCTIONS'
is not defined, evaluates to 0 [-Wundef]
#if CAIRO_HAS_EGL_FUNCTIONS
    ^

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20150105/5a071f72/attachment.html>


More information about the cairo-bugs mailing list