From 72c81801212e123abca1faeaf3192d0f0f4bade0 Mon Sep 17 00:00:00 2001 From: Lode Date: Sat, 21 Mar 2015 15:04:43 +0100 Subject: make all comments C-style --- lodepng_unittest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lodepng_unittest.cpp') 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 -- cgit v1.2.3