diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-22 21:37:31 +0300 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-23 15:46:33 +0300 |
commit | e6a93e59adeea1c140f2ef63e4055a15823bfeda (patch) | |
tree | 4cfd893270406c1eb07ad123d3d200846dbeb14c | |
parent | 8ed79c45b47f274c58180b8526f7a8cab061cbed (diff) |
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
4da52e3630343e8d3a79aef2cafcb6bf0b71e8da
will trigger warnings.
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
-rwxr-xr-x | configure | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |