mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
configure: Treat -Wreturn-type as an error.
This commit is contained in:
parent
b623f0ef7d
commit
0c39f5d219
1 changed files with 8 additions and 0 deletions
|
@ -523,6 +523,14 @@ CHARYBDIS_C_GCC_TRY_FLAGS([-Wplacement-new=2], charybdis_cv_c_gcc_w_placement_ne
|
|||
CHARYBDIS_C_GCC_TRY_FLAGS([-Wundef], charybdis_cv_c_gcc_w_undef)
|
||||
CHARYBDIS_C_GCC_TRY_FLAGS([-Wodr], charybdis_cv_c_gcc_w_odr)
|
||||
|
||||
dnl
|
||||
dnl List of warnings treated as errors
|
||||
dnl
|
||||
|
||||
dnl Uninitialized return values are not useful in this project; forgetting
|
||||
dnl to return from a function is always a developer mistake here.
|
||||
CHARYBDIS_C_GCC_TRY_FLAGS([-Werror=return-type], charybdis_cv_c_gcc_w_error_return_type)
|
||||
|
||||
dnl
|
||||
dnl List of warnings we suppress:
|
||||
dnl
|
||||
|
|
Loading…
Reference in a new issue