Why you might sometimes need to add -Wunreachable-code for C code
Published 09 February 2012 under C, gcc

Often when you have unreachable code it means that you've not codedwhat you thought you had, e.g. curly braces are in the wrong place.By default, compilers such as gcc and clang (llvm) will compile...

Read more →

Why you might need -Wsign-compare for C code
Published 09 February 2012 under C, gcc

Here's a simple example of mixing signed and unsigned integers in C,does it do what you would expect?By default, compilers such as gcc and clang (llvm) will compile thefollowing code without...

Read more →