Closed joshgarnett closed 10 years ago
that's only invalid if you use a C++ compiler to compile C code.
Yep, but I guess providing some level of compatibility won't hurt anyone. On the other hand I don't really remember any C projects which do that. Probably won't apply it.
Oh well and wscript contains conf.env.append_unique('CFLAGS', ['-std=gnu99', '-Wall', '-Wextra'])
, so it's always compiled with -Wall and -Wextra.
Not to mention very ugly way of writing conversions with a space between the type and the expression. :D Sorry, but no. Not because it's ugly, but because it's a C++ issue, it's not valid for C programs. You can compile termbox as C and use that object file from C++, as far as I remember header file has the needed ifdefs for extern "C"
.
Running with flags -g -O2 -Wall -Wextra a number of invalid conversion errors cropped up. The changes in this pull request fix the errors.