[RBUILD]
authorEric Kohl <eric.kohl@reactos.org>
Sun, 2 Jan 2011 20:04:53 +0000 (20:04 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 2 Jan 2011 20:04:53 +0000 (20:04 +0000)
Fix "format not a string literal and no format arguments" build warnings.

svn path=/trunk/; revision=50265

reactos/tools/rbuild/backend/msvc/propsmaker.cpp
reactos/tools/rbuild/backend/msvc/vspropsmaker.cpp

index 5fc860e..70f2427 100644 (file)
@@ -92,11 +92,10 @@ PropsMaker::_generate_global_includes(bool debug, bool use_ros_headers)
                        fprintf ( OUT, "\"$(RootIntDir)\\");
                else if (incs[i]->directory->directory == OutputDirectory)
                        fprintf ( OUT, "\"$(RootOutDir)\\");
-               else 
+               else
                        continue;
 
-               fprintf ( OUT, incs[i]->directory->relative_path.c_str()); 
-               fprintf ( OUT, "\" ; ");
+               fprintf ( OUT, "%s\" ; ", incs[i]->directory->relative_path.c_str());
        }
 
        fprintf ( OUT, "\"$(RootIntDir)\\include\" ; ");
@@ -146,10 +145,9 @@ PropsMaker::_generate_global_definitions(bool debug, bool use_ros_headers)
                        continue;
 
                if ( defs[i]->value != "" )
-                       fprintf ( OUT, "%s=%s",defs[i]->name.c_str(), defs[i]->value.c_str());
+                       fprintf ( OUT, "%s=%s ; ",defs[i]->name.c_str(), defs[i]->value.c_str());
                else
-                       fprintf ( OUT, defs[i]->name.c_str());
-               fprintf ( OUT, " ; ");
+                       fprintf ( OUT, "%s ; ", defs[i]->name.c_str());
        }
 
        fprintf ( OUT, "\t</globalDefines>\r\n");
index 2e7bdf7..7f03ec3 100644 (file)
@@ -166,8 +166,7 @@ VSPropsMaker::_generate_global_includes()
                else 
                        continue;
 
-               fprintf ( OUT, incs[i]->directory->relative_path.c_str()); 
-               fprintf ( OUT, " ; ");
+               fprintf ( OUT, "%s ; ", incs[i]->directory->relative_path.c_str()); 
        }
 
        fprintf ( OUT, "$(RootIntDir)\\include ; ");
@@ -221,10 +220,9 @@ VSPropsMaker::_generate_global_definitions()
                        continue;
 
                if ( defs[i]->value != "" )
-                       fprintf ( OUT, "%s=%s",defs[i]->name.c_str(), defs[i]->value.c_str());
+                       fprintf ( OUT, "%s=%s ; ",defs[i]->name.c_str(), defs[i]->value.c_str());
                else
-                       fprintf ( OUT, defs[i]->name.c_str());
-               fprintf ( OUT, " ; ");
+                       fprintf ( OUT, "%s ; ", defs[i]->name.c_str());
        }
 
        fprintf ( OUT, "\"\r\n");