[haiku-bugs] [Haiku] #8882: add gcc version check to gl.h to avoid warnings

  • From: "jstressman" <trac@xxxxxxxxxxxx>
  • Date: Mon, 13 Aug 2012 16:43:12 -0000

#8882: add gcc version check to gl.h to avoid warnings
-----------------------------+------------------------------
 Reporter:  jstressman       |        Owner:  korli
     Type:  bug              |       Status:  new
 Priority:  normal           |    Milestone:  R1
Component:  Kits/OpenGL Kit  |      Version:  R1/Development
 Keywords:                   |   Blocked By:
 Blocking:                   |  Has a Patch:  0
 Platform:  All              |
-----------------------------+------------------------------
 Currently (hrev44524) when building things like SDL, we get thousands of
 warning messages about "warning: `visibility' attribute directive ignored"

 A version check to not use this attribute unless we have a higher GCC
 version avoids this.

 The attached patch fixes the problem for me, but I'd like for someone more
 knowledgeable to have a look. :)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8882>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: