[test-suite] r311458 - [test-suite] Fix warnings in Pathfinder

Hal Finkel via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 22 07:47:55 PDT 2017


Author: hfinkel
Date: Tue Aug 22 07:47:55 2017
New Revision: 311458

URL: http://llvm.org/viewvc/llvm-project?rev=311458&view=rev
Log:
[test-suite] Fix warnings in Pathfinder

Fix builders that use -Werror; this code triggered some warnings (nothing
serious). Cleaning them up...

Modified:
    test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/main.c
    test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/parsing.c
    test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/searchAlgorithms.c
    test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/searchAlgorithms.h

Modified: test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/main.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/main.c?rev=311458&r1=311457&r2=311458&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/main.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/main.c Tue Aug 22 07:47:55 2017
@@ -48,6 +48,7 @@
 #include "vectorUtils.h"
 #include "statistics.h"
 #include "configuration.h"
+#include "yaml.h"
 
 #ifdef QT
    #include "qThreadSearch.h"
@@ -172,7 +173,7 @@ int main(int argc, char *argv[])
                 config->qThreadCount = qCount;
                 break;
             case 'y':
-                if ( commandLine != NULL )
+                /* if ( commandLine != NULL ) */
                 {
                     YAMLOpen();
                     commandLine[0] = '\0';

Modified: test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/parsing.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/parsing.c?rev=311458&r1=311457&r2=311458&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/parsing.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/parsing.c Tue Aug 22 07:47:55 2017
@@ -533,7 +533,7 @@ char **parseSignature( char *data )
     {
         printf ( "%s ", labels[i] );
     }
-    /* end Debug */
+    / * end Debug */
 
     return labels;
 }

Modified: test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/searchAlgorithms.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/searchAlgorithms.c?rev=311458&r1=311457&r2=311458&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/searchAlgorithms.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/searchAlgorithms.c Tue Aug 22 07:47:55 2017
@@ -50,6 +50,7 @@
 #include "utils.h"
 #include "graphGen.h"
 #include "statistics.h"
+#include "yaml.h"
 
 
 extern double currentTime();
@@ -567,7 +568,7 @@ int findAndLogAllPossibleLegs(Graph *gra
             #endif
 
             options->multiThreaded = maxThreads > 1;
-            /* debug * /printf( "%d total threads, this one is %d\n", maxThreads, myThread ); /* debug */
+            /* debug * /printf( "%d total threads, this one is %d\n", maxThreads, myThread ); / * debug */
             lastingResults = malloc((maxThreads+1) * sizeof(NodeVecVec*) );
             lastingResults[maxThreads] = 0; /* Null terminated to avoid having to keep track of bitsNeeded */
         }
@@ -610,7 +611,7 @@ int findAndLogAllPossibleLegs(Graph *gra
                     printf( "Searching for %s(%d) ~~~> %s\n", fullSignature[0],
                             graph->systemCallMap->vector[i]->nodes->vector[k]->id,
                             fullSignature[1]);
-                    /* <-- debug */
+                    / * <-- debug */
                     findAndRecordAllPaths( graph->systemCallMap->vector[i]->nodes->vector[k], &fullSignature[1],
                             &fullIntSignature[1], result, visited, myResults, options );
                     Bitfield_delete(visited);
@@ -648,7 +649,7 @@ int findAndLogAllPossibleLegs(Graph *gra
             printf("\n");
         }
     }
-    /* <-- debug */
+    / * <-- debug */
 
     /* At some point, we will want to use the FullPath argument and pass it along to
      * buildGraphFromPaths. Until then, however, we're only going to build the most

Modified: test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/searchAlgorithms.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/searchAlgorithms.h?rev=311458&r1=311457&r2=311458&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/searchAlgorithms.h (original)
+++ test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/searchAlgorithms.h Tue Aug 22 07:47:55 2017
@@ -102,5 +102,6 @@ int findAndLogAllPossibleLegs( Graph *gr
  */
  
 void doMultiSearchesQT(Configuration *config);
+void doMultiSearches(Configuration *config);
 
 #endif /* SEARCHALGORITHMS_H_ */




More information about the llvm-commits mailing list