URI:
       build_no_warnings.sh - sfeed_tests - sfeed tests and RSS and Atom files
  HTML git clone git://git.codemadness.org/sfeed_tests
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       build_no_warnings.sh (760B)
       ---
            1 #!/bin/sh
            2 # other useful flags, but may report many false-positives:
            3 # -Wmissing-prototypes
            4 # -Weverything
            5 
            6 # fail on any warnings/errors (-Werror)
            7 set +e
            8 
            9 JOBS=4
           10 
           11 make clean
           12 make -j$JOBS CC="gcc -std=c99" CFLAGS="-Wall -Wextra -pedantic -Werror -Wno-unused-parameter -Wno-implicit-fallthrough -Wshadow"
           13 
           14 make clean
           15 make -j$JOBS CC="clang" CFLAGS="-Wall -Wextra -pedantic -Werror -Wno-unused-parameter -Wno-implicit-fallthrough -Wshadow -Wreserved-macro-identifier"
           16 
           17 # clang-analyzer
           18 #make clean
           19 #scan-build make
           20 
           21 # cppcheck
           22 echo "cppcheck:"
           23 cppcheck --suppress=variableScope --enable=all --inconclusive --library=posix *.c >/dev/null
           24 
           25 # error if found
           26 #! grep -E ' (error|portability): ' /tmp/2
           27 #! grep -E ' \[(unreadVariable|unusedAllocatedMemory)\]' /tmp/2