From 567cf9f6ffd2a954e5f773d05530c30aeb381f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Mon, 2 Jan 2023 16:26:21 +0100 Subject: Enable stricter C99 warnings Fedora is considering moving all its packages to C99 and enabling stricter C99 warnings. OCaml has already moved to a compiler requiring C11 features, let's enable these warnings on GCC-compatible compilers. Some of the warnings on the following article are already covered by -Wall and -Werror. Reference: [Modernizing Fedora's C code][1]. [1]: https://lwn.net/Articles/913505/ --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 487f66a95e..57981c8a32 100755 --- a/configure +++ b/configure @@ -13656,7 +13656,8 @@ case $ocaml_cv_cc_vendor in #( *) : outputobj='-o ' warn_error_flag='-Werror' - cc_warnings='-Wall' ;; + cc_warnings="-Wall -Wint-conversion -Wstrict-prototypes \ +-Wold-style-definition" ;; esac case $enable_warn_error,true in #( -- cgit v1.2.1