pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/35800: graphic/freeglut gcc 4.1.2



>Number:         35800
>Category:       pkg
>Synopsis:       graphic/freeglut gcc 4.1.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 23 09:20:00 +0000 2007
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_118855-19 i86pc


>Description:


don't compile whith gcc4.1.2


>How-To-Repeat:


bmake


>Fix:


--- src/freeglut_internal.h.orig        Thu Dec 11 18:02:13 2003
+++ src/freeglut_internal.h     Fri Feb 23 10:04:33 2007
@@ -384,7 +384,7 @@
  * type.
  */
 #define FETCH_WCB(window,cbname) \
-    ((FGCB ## cbname)((window).CallBacks[CB_ ## cbname]))
+    (((window).CallBacks[CB_ ## cbname]))
 
 /*
  * INVOKE_WCB() is used as:
@@ -527,7 +527,7 @@
 
     SFG_Context         Window;                 /* Window and OpenGL context */
     SFG_WindowState     State;                  /* The window state          */
-    void         *CallBacks[ TOTAL_CALLBACKS ]; /* Array of window callbacks */
+    void         (*CallBacks[ TOTAL_CALLBACKS ])(); /* Array of window 
callbacks */
     void               *UserData ;              /* For use by user           */
 
     SFG_Menu*       Menu[ FREEGLUT_MAX_MENUS ]; /* Menus appended to window  */






Home | Main Index | Thread Index | Old Index