[Mesa-dev] [Bug 77749] New: PRAGMA_EXPORT_SUPPORTED defined incorrectly on OS X

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 21 15:38:00 PDT 2014


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

          Priority: medium
            Bug ID: 77749
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: PRAGMA_EXPORT_SUPPORTED defined incorrectly on OS X
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: thakis at chromium.org
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: Mesa core
           Product: Mesa

gl.h and osmesa.h define PRAGMA_EXPORT_SUPPORTED and then use "pragma export
on", "pragma export off" if that is defined.

#if (defined(__BEOS__) && defined(__POWERPC__)) || defined(__QUICKDRAW__)    
#  define PRAGMA_EXPORT_SUPPORTED        1    
#endif

On my mac, this ends up being true somehow (I suppose something ends up
defining __QUICKDRAW__), and then clang warns

../../third_party/mesa/src/include/GL/gl.h:124:9: warning: unknown pragma
ignored [-Wunknown-pragmas]
#pragma export on
        ^

It looks like this is only used for old platforms, so I'd suggest just removing
the whole "pragma export" stuff.

-- 
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/20140421/5d16aa49/attachment.html>


More information about the mesa-dev mailing list