Pārlūkot izejas kodu

ENH: remove warnings in tests

Bill Hoffman 21 gadi atpakaļ
vecāks
revīzija
ee9f925509

+ 1 - 0
Tests/LinkLineOrder/Two.c

@@ -1,4 +1,5 @@
 void OneFunc();
+void NoDepZ_func();
 
 void TwoFunc()
 {

+ 1 - 1
Tests/LoadCommand/CMakeCommands/cmTestCommand.c

@@ -13,7 +13,7 @@ typedef struct
 static int InitialPass(void *inf, void *mf, int argc, char *argv[])
 {
   char* file;
-  char* str;
+  const char* str;
   char buffer[1024];
   void *source_file;
   cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;

+ 1 - 1
Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c

@@ -13,7 +13,7 @@ typedef struct
 static int InitialPass(void *inf, void *mf, int argc, char *argv[])
 {
   char* file;
-  char* str;
+  const char* str;
   char buffer[1024];
   void *source_file;
   cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;