Pelles C forum
Pelles C => Feature requests => Topic started by: iZzz32 on April 24, 2014, 12:05:43 AM
-
When compiling with /W2 and including <GL/glu.h>:
#include <windows.h>
#include <GL/gl.h>
#include <GL/glu.h>
void foo(void) {}
compiler produces a few warnings about missing prototypes:
...\PellesC\Include\Win\GL\glu.h(213): warning #2027: Missing prototype for '3', with type 'void __stdcall (*)()'.
...\PellesC\Include\Win\GL\glu.h(223): warning #2027: Missing prototype for '3', with type 'void __stdcall (*)()'.
...\PellesC\Include\Win\GL\glu.h(239): warning #2027: Missing prototype for '3', with type 'void __stdcall (*)()'.
I believe that void APIENTRY gluQuadricCallback(GLUquadric*,GLenum,void (CALLBACK*)()) should be void APIENTRY gluQuadricCallback(GLUquadric*,GLenum,void (CALLBACK*)(void)) etc.
Pelles C 7 and 8 RC2. Btw, Help->About in POIDE says that it is "Version 8.00.2 Release Candidate #1", but I'm 100% sure that I've installed RC2.
-
Btw, Help->About in POIDE says that it is "Version 8.00.2 Release Candidate #1", but I'm 100% sure that I've installed RC2.
+1
Definitely installed RC2 and it says RC1, both in the Abou box as well as in the splash screen
Ralf
-
1) You are sure () means C++ "no parameters" and not C "any number of parameters"? For all three?
gluQuadricCallback
gluTessCallback
gluNurbsCallback
2) Nothing changed in the IDE for RC2, so no good reason to modify the text.
-
2) Nothing changed in the IDE for RC2, so no good reason to modify the text.
Well, the reason is that it can confuse the heck out of people that don't know if RC2 properly installed over a previously installed RC1...
Ralf
-
1) You are sure () means C++ "no parameters" and not C "any number of parameters"? For all three?
Ok, I didn't used any of these 3 functions and you're right, callback arguments depend on which parameter. However I still think that wrapping #include <GL/glu.h> with #pragma warn just for Pelles C is a bit annoying.
-
Ok, I didn't used any of these 3 functions and you're right, callback arguments depend on which parameter. However I still think that wrapping #include <GL/glu.h> with #pragma warn just for Pelles C is a bit annoying.
I don't use OpenGL, so I really don't care either way. I have now added void, in the hope that this is correct (since I can't find a definitive answer using Google).
Well, the reason is that it can confuse the heck out of people that don't know if RC2 properly installed over a previously installed RC1...
You seem to be very easily confused, then.
-
Well, the reason is that it can confuse the heck out of people that don't know if RC2 properly installed over a previously installed RC1...
You seem to be very easily confused, then.
Maybe... But I am sure I won't be the only one.... ;)
Ralf