Commits

Anonymous committed 7e61315

Fixing all warnings on OSX default warning level.

Comments (0)

Files changed (7)

src/actions/SoToVRMLAction.cpp

   return SoCallbackAction::CONTINUE;
 }
 
+#endif // HAVE_VRML97
+
 #undef NEW_NODE
 #undef PRIVATE
 #undef PUBLIC
 #undef THISP
-
-#endif // HAVE_VRML97

src/base/string.cpp

      infinite recursion. */
   if (debug) {
     printf("cc_string_grow_buffer: "
-           "me->bufsize==%z, me->pointer==%p, me->buffer==%p => "
-           "newsize==%z\n",
+           "me->bufsize==%zu, me->pointer==%p, me->buffer==%p => "
+           "newsize==%zu\n",
            me->bufsize, me->pointer, me->buffer, newsize);
   }
 

src/nodes/SoSceneTexture2.cpp

     delete fbodata;
   }
 
+};
+
+// *************************************************************************
+
+class SoSceneTexture2P {
   struct fbo_data {
     GLuint fbo_frameBuffer;
     GLuint fbo_depthBuffer;
         this->fbo_mipmap = FALSE;
     }
   };
-};
 
-// *************************************************************************
-
-class SoSceneTexture2P {
 public:
   SoSceneTexture2P(SoSceneTexture2 * api);
   ~SoSceneTexture2P();

src/profiler/SoProfiler.cpp

 
   if (SoProfilerP::shouldClearConsole()) {
     // send ansi-console clear screen code
-    static const char * CLEAR_SEQUENCE = "\033c";
+    static const char CLEAR_SEQUENCE[] = "\033c";
     if (profiler::console::onstdout) {
-      fprintf(coin_get_stdout(), CLEAR_SEQUENCE);
+      fputs(CLEAR_SEQUENCE,coin_get_stdout());
     } else if (profiler::console::onstderr) {
-      fprintf(coin_get_stderr(), CLEAR_SEQUENCE);
+      fputs(CLEAR_SEQUENCE,coin_get_stderr());
     }
   }
 

src/rendering/SoGLNurbs.cpp

         ptr[idx+2] = srfpt[2]/srfpt[3];
 
         sprintf(buffer, "%g %g %g,", srfpt[0]/srfpt[3], srfpt[1]/srfpt[3], srfpt[2]/srfpt[3]);
-        if ( fp ) fprintf(fp, buffer);
+        if ( fp ) fputs(buffer,fp);
       }
       if ( fp ) fprintf(fp, "\n");
     }
         int idxpt = j*vstride + i*ustride;
         // correct the normals if zero normals are present!
         sprintf(buffer, "%g %g %g, ", ptr[idxpt+0]+ptrnormals[idx+0], ptr[idxpt+1]+ptrnormals[idx+1], ptr[idxpt+2]+ptrnormals[idx+2]);
-        if ( fp ) fprintf(fp, buffer);
+        if ( fp ) fputs(buffer, fp);
       }
       if ( fp ) fprintf(fp, "\n");
     }
 
   /* Can not use cc_debugerror_* interface(), as that could cause an
      infinite recursion. */
-  if (debug) { printf("dst==%p, n==%u, fmtstr=='%s'\n", dst, n, fmtstr); }
+  if (debug) { printf("dst==%p, n==%zu, fmtstr=='%s'\n", dst, n, fmtstr); }
 
 #ifdef HAVE_VA_COPY_MACRO
   /* The C99 va_copy() is available, so use that to help us "rewind"

src/xml/element.cpp

   const char * data = cc_xml_elt_get_data(elt);
   assert(value != NULL);
   if ( data == NULL ) return FALSE;
-  if ( sscanf(data, "%ld", value) == 1 ) return TRUE; // FIXME: unsigned
+  if ( sscanf(data, "%u", value) == 1 ) return TRUE; // FIXME: unsigned
   return FALSE;
 }
 
   const char * data = cc_xml_elt_get_data(elt);
   assert(value != NULL);
   if ( data == NULL ) return FALSE;
-  if ( sscanf(data, "%ld", value) == 1 ) return TRUE;
+  if ( sscanf(data, "%u", value) == 1 ) return TRUE;
   return FALSE;
 }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.