diff options
author | SlowRiot <rain.backnet@gmail.com> | 2014-11-28 01:22:36 +0000 |
---|---|---|
committer | SlowRiot <rain.backnet@gmail.com> | 2014-11-28 01:22:36 +0000 |
commit | f1de0a2a71d2fbc68a6452c3609552148bb6a19a (patch) | |
tree | 51e6c6653de7c7dfe386c4e5e8406533d8ac506a /lodepng_unittest.cpp | |
parent | 2662c53205a1de640ea67fd8c50fa2d22fe8b9f0 (diff) | |
parent | d515dbdfeba0f3c02deb17dce5ca1f958fc0befb (diff) |
Merge https://github.com/lvandeve/lodepng
# By Lode
# Via Lode
* https://github.com/lvandeve/lodepng:
various fixes
Conflicts:
lodepng.cpp
Diffstat (limited to 'lodepng_unittest.cpp')
-rw-r--r-- | lodepng_unittest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lodepng_unittest.cpp b/lodepng_unittest.cpp index e3dbc10..56fc61e 100644 --- a/lodepng_unittest.cpp +++ b/lodepng_unittest.cpp @@ -43,7 +43,7 @@ mv lodepng.cpp lodepng.c ; gcc lodepng.c example*.c -W -Wall -ansi -pedantic -O3 *) Check pngdetail.cpp: g++ lodepng.cpp lodepng_util.cpp pngdetail.cpp -W -Wall -ansi -pedantic -O3 -o pngdetail -./pnginfo testdata/PngSuite/basi0g01.png +./pngdetail testdata/PngSuite/basi0g01.png *) Test compiling with some code sections with #defines disabled, for unused static function warnings etc... g++ lodepng.cpp -W -Wall -ansi -pedantic -O3 -c -DLODEPNG_NO_COMPILE_ZLIB @@ -69,7 +69,7 @@ clang++ --analyze -Xanalyzer -analyzer-output=html lodepng.cpp *) check for memory leaks and vulnerabilities with valgrind comment out the large files tests because they're slow with valgrind -g++ lodepng.cpp lodepng_util.cpp lodepng_unittest.cpp -Wall -Wextra -pedantic -ansi -g3 +g++ lodepng.cpp lodepng_util.cpp lodepng_unittest.cpp -Wall -Wextra -pedantic -ansi -O3 valgrind --leak-check=full --track-origins=yes ./a.out *) remove "#include <iostream>" from lodepng.cpp if it's still in there @@ -85,7 +85,7 @@ g++ lodepng.cpp example_sdl.cpp -Wall -Wextra -pedantic -ansi -O3 -lSDL -o showp // ./showpng testdata/PngSuite/*.png /* -*) strip trailing spaces +*) strip trailing spaces and ensure consistent newlines *) check diff of lodepng.cpp and lodepng.h before submitting |