[llvm-commits] [test-suite] r99315 - /test-suite/trunk/MultiSource/Benchmarks/PAQ8p/paq8p.cpp

Gabor Greif ggreif at gmail.com
Tue Mar 23 12:08:19 PDT 2010


Author: ggreif
Date: Tue Mar 23 14:08:19 2010
New Revision: 99315

URL: http://llvm.org/viewvc/llvm-project?rev=99315&view=rev
Log:
fix two warnings (pointed out by clang)
there are others, but those probably should be
fixed by an upgrade, as they are semantically relevant

Modified:
    test-suite/trunk/MultiSource/Benchmarks/PAQ8p/paq8p.cpp

Modified: test-suite/trunk/MultiSource/Benchmarks/PAQ8p/paq8p.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/PAQ8p/paq8p.cpp?rev=99315&r1=99314&r2=99315&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/PAQ8p/paq8p.cpp (original)
+++ test-suite/trunk/MultiSource/Benchmarks/PAQ8p/paq8p.cpp Tue Mar 23 14:08:19 2010
@@ -605,7 +605,9 @@
 #include <time.h>
 #include <math.h>
 #include <ctype.h>
+#ifndef NDEBUG
 #define NDEBUG  // remove for debugging (turns on Array bound checks)
+#endif
 #include <assert.h>
 
 #ifdef UNIX
@@ -4389,7 +4391,7 @@
         while (*p && *p!='\t') ++p;
         fname[i]=p+1;
         while (*p && *p!='\r') ++p;
-        if (!*p) printf("%s: header corrupted at %d\n", archiveName.c_str(),
+        if (!*p) printf("%s: header corrupted at %ld\n", archiveName.c_str(),
           p-&filenames[0]), quit();
         assert(p-&filenames[0]<header_size);
         *p++=0;





More information about the llvm-commits mailing list