diff options
author | Lode <lvandeve@gmail.com> | 2015-03-21 15:04:43 +0100 |
---|---|---|
committer | Lode <lvandeve@gmail.com> | 2015-03-21 15:04:43 +0100 |
commit | 72c81801212e123abca1faeaf3192d0f0f4bade0 (patch) | |
tree | 33cd4459391713fd9db7f8871d40eda19de03aea /lodepng_unittest.cpp | |
parent | bf2aa0a46fc8c1d398604cd384bc2c583774cc1f (diff) |
make all comments C-style
Diffstat (limited to 'lodepng_unittest.cpp')
-rw-r--r-- | lodepng_unittest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lodepng_unittest.cpp b/lodepng_unittest.cpp index 032dc07..93801a2 100644 --- a/lodepng_unittest.cpp +++ b/lodepng_unittest.cpp @@ -34,6 +34,9 @@ g++ lodepng.cpp lodepng_util.cpp lodepng_unittest.cpp -Wall -Wextra -Wshadow -pe *) Compile with pure ISO C90 and all warnings: mv lodepng.cpp lodepng.c ; gcc -I ./ lodepng.c examples/example_decode.c -ansi -pedantic -Wall -Wextra -O3 ; mv lodepng.c lodepng.cpp +*) Compile with C with -pedantic but not -ansi flag so it warns about // style comments in C++-only ifdefs +mv lodepng.cpp lodepng.c ; gcc -I ./ lodepng.c examples/example_decode.c -pedantic -Wall -Wextra -O3 ; mv lodepng.c lodepng.cpp + *) try lodepng_benchmark.cpp g++ lodepng.cpp lodepng_benchmark.cpp -Wall -Wextra -pedantic -ansi -lSDL -O3 && ./a.out |