staticAnalyze use same compilation flags as normal build
authorYann Collet <yann.collet.73@gmail.com>
Sat, 27 Jun 2015 21:21:33 +0000 (13:21 -0800)
committerYann Collet <yann.collet.73@gmail.com>
Sat, 27 Jun 2015 21:21:33 +0000 (13:21 -0800)
Makefile
NEWS
programs/lz4cli.c

index 114ca67..9113e5f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -112,7 +112,7 @@ sanitize: clean
        $(MAKE) test CC=clang CPPFLAGS="-g -fsanitize=undefined" FUZZER_TIME="-T1mn" NB_LOOPS=-i1
 
 staticAnalyze: clean
-       scan-build --status-bugs -v $(MAKE) all CFLAGS=-g
+       CPPFLAGS=-g scan-build --status-bugs -v $(MAKE) all
 
 armtest: clean
        cd lib; $(MAKE) -e all CC=arm-linux-gnueabi-gcc CPPFLAGS="-Werror"
diff --git a/NEWS b/NEWS
index b403d0f..569f54b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
 r131
-Added : Example using lz4frame library, by Zbigniew JÄ™drzejewski-Szmek (#118)
+Added  : Example using lz4frame library, by Zbigniew JÄ™drzejewski-Szmek (#118)
+Changed: xxhash symbols are modified (namespace emulation) within liblz4
 
 r130:
 Fixed  : incompatibility sparse mode vs console, reported by Yongwoon Cho (#105)
index 32ce4f3..977c04e 100644 (file)
@@ -197,6 +197,7 @@ static int usage_advanced(void)
 
 static int usage_longhelp(void)
 {
+    usage_advanced();
     DISPLAY( "\n");
     DISPLAY( "Which values can get [output] ? \n");
     DISPLAY( "[output] : a filename\n");
@@ -357,9 +358,9 @@ int main(int argc, char** argv)
                 switch(argument[0])
                 {
                     /* Display help */
-                case 'V': DISPLAY(WELCOME_MESSAGE); return 0;   /* Version */
-                case 'h': usage_advanced(); return 0;
-                case 'H': usage_advanced(); usage_longhelp(); return 0;
+                case 'V': DISPLAY(WELCOME_MESSAGE); goto _cleanup;   /* Version */
+                case 'h': usage_advanced(); goto _cleanup;
+                case 'H': usage_longhelp(); goto _cleanup;
 
                     /* Compression (default) */
                 case 'z': forceCompress = 1; break;
@@ -557,9 +558,9 @@ int main(int argc, char** argv)
       }
     }
 
+_cleanup:
     if (main_pause) waitEnter();
     free(dynNameSpace);
     free((void*)inFileNames);
-    if (operationResult != 0) return operationResult;
-    return 0;
+    return operationResult;
 }