The following warning options are new in gcc 6, and not turned on by default or by -Wall / -Wextra: -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wmisleading-indentation [-Wnull-dereference has already turned up a bug!]