[vlc-commits] [Git][videolan/vlc][master] configure: generate an error in extra checks when return type is bogus

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Dec 18 08:54:16 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
4cd7d490 by Steve Lhomme at 2023-12-18T08:37:12+00:00
configure: generate an error in extra checks when return type is bogus

clang does it by default but gcc doesn't.

See https://code.videolan.org/videolan/vlc/-/merge_requests/4694

- - - - -


1 changed file:

- configure.ac


Changes:

=====================================
configure.ac
=====================================
@@ -1161,9 +1161,9 @@ AC_ARG_ENABLE([extra_checks],
                     [Turn some warnings into compilation error (default disabled)]),,
                     [enable_extra_checks="no"])
 AS_IF([test "${enable_extra_checks}" = "yes"], [
-    AX_APPEND_COMPILE_FLAGS([-Werror=missing-field-initializers -Werror=format -Werror=incompatible-pointer-types -Werror=restrict -Werror=int-conversion], [CFLAGS])
+    AX_APPEND_COMPILE_FLAGS([-Werror=missing-field-initializers -Werror=format -Werror=incompatible-pointer-types -Werror=restrict -Werror=int-conversion -Werror=return-type], [CFLAGS])
     AC_LANG_PUSH(C++)
-    AX_APPEND_COMPILE_FLAGS([-Werror=missing-field-initializers -Werror=format], [CXXFLAGS])
+    AX_APPEND_COMPILE_FLAGS([-Werror=missing-field-initializers -Werror=format -Werror=return-type], [CXXFLAGS])
     AC_LANG_POP(C++)
 ])
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4cd7d490402b1e733f41a5b1b593077a3bc39ab1

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4cd7d490402b1e733f41a5b1b593077a3bc39ab1
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list