Commit e6a93e59 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

configure: add -Wstrict-prototypes when available

GCC (and Clang) have this useful warning that is not enabled by -Wall or
-Wextra. This will ensure that issues like those fixed in
4da52e36
will trigger warnings.
Reviewed-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 8ed79c45
......@@ -5637,6 +5637,7 @@ disabled iconv || check_func_headers iconv.h iconv || check_lib2 iconv.h iconv -
enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"
# add some useful compiler flags if supported
check_cflags -Wstrict-prototypes
check_cflags -Wdeclaration-after-statement
check_cflags -Wall
check_cflags -Wdisabled-optimization
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment