[Bug 9676] New: pedantic type errors on osx

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Sep 15 17:02:27 CDT 2007


http://bugs.winehq.org/show_bug.cgi?id=9676

           Summary: pedantic type errors on osx
           Product: Wine
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P2
         Component: wine-gui
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: daniel at danieloberhoff.de


Hi,

Just built wine from..err..git :).

Had a few build errors in wgl.c due to missing or undefined (and redundant)
typecasts. Here is the diff as how I fixed them (a few are just warnings,
specifically the printf format related ones).

diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c
index 029f361..f6e2012 100644
--- a/dlls/opengl32/wgl.c
+++ b/dlls/opengl32/wgl.c
@@ -348,7 +348,7 @@ static void tess_callback_vertex(GLvoid *vertex)

 static void tess_callback_begin(GLenum which)
 {
-    TRACE("%d\n", which);
+    TRACE("%d\n", (int)which);
     glBegin(which);
 }

@@ -387,8 +387,8 @@ static BOOL WINAPI wglUseFontOutlines_common(HDC hdc,
     tess = gluNewTess();
     if(tess)
     {
-        gluTessCallback(tess, GLU_TESS_VERTEX,
(_GLUfuncptr)tess_callback_vertex);
-        gluTessCallback(tess, GLU_TESS_BEGIN,
(_GLUfuncptr)tess_callback_begin);
+        gluTessCallback(tess, GLU_TESS_VERTEX, tess_callback_vertex);
+        gluTessCallback(tess, GLU_TESS_BEGIN, tess_callback_begin);
         gluTessCallback(tess, GLU_TESS_END, tess_callback_end);
     }
     LEAVE_GL();
@@ -573,7 +573,7 @@ BOOL WINAPI wglUseFontOutlinesW(HDC hdc,
  */
 void WINAPI wine_glEnable( GLenum cap )
 {
-    TRACE("(%d)\n", cap );
+    TRACE("(%d)\n", (int)cap );
     wine_wgl.p_wglEnable(cap);
 }

@@ -582,7 +582,7 @@ void WINAPI wine_glEnable( GLenum cap )
  */
 GLboolean WINAPI wine_glIsEnabled( GLenum cap )
 {
-    TRACE("(%d)\n", cap );
+    TRACE("(%d)\n", (int)cap );
     return wine_wgl.p_wglIsEnabled(cap);
 }

@@ -591,7 +591,7 @@ GLboolean WINAPI wine_glIsEnabled( GLenum cap )
  */
 void WINAPI wine_glDisable( GLenum cap )
 {
-    TRACE("(%d)\n", cap );
+    TRACE("(%d)\n", (int)cap );
     wine_wgl.p_wglDisable(cap);
 }

@@ -600,7 +600,7 @@ void WINAPI wine_glDisable( GLenum cap )
  */
 void WINAPI wine_glScissor( GLint x, GLint y, GLsizei width, GLsizei height )
 {
-    TRACE("(%d, %d, %d, %d)\n", x, y, width, height );
+    TRACE("(%d, %d, %d, %d)\n", (int)x, (int)y, (int)width, (int)height );
     wine_wgl.p_wglScissor(x, y, width, height);
 }

@@ -609,7 +609,7 @@ void WINAPI wine_glScissor( GLint x, GLint y, GLsizei
width, GLsizei height )
  */
 void WINAPI wine_glViewport( GLint x, GLint y, GLsizei width, GLsizei height )
 {
-    TRACE("(%d, %d, %d, %d)\n", x, y, width, height );
+    TRACE("(%d, %d, %d, %d)\n", (int)x, (int)y, (int)width, (int)height );
     wine_wgl.p_wglViewport(x, y, width, height);
 }


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list