build: Don't disable checks in release builds

Both Clutter and Cogl use g_return(_val)_if_fail() to safeguard
introspected API. Release builds were dropping these checks, which could
result in a much more crashy experience, especially when considering
extensions, but also due to bugs in the shell code itself.

This won't affect any major distro, because they all use "plain" builds.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2930>
This commit is contained in:
Sebastian Keller 2023-03-21 00:52:39 +01:00 committed by Marge Bot
parent d6af73ba68
commit 679d2fb4e0
2 changed files with 0 additions and 2 deletions

View File

@ -21,7 +21,6 @@ if get_option('debug')
elif buildtype != 'plain' elif buildtype != 'plain'
clutter_debug_c_args += [ clutter_debug_c_args += [
'-DG_DISABLE_ASSERT', '-DG_DISABLE_ASSERT',
'-DG_DISABLE_CHECKS',
'-DG_DISABLE_CAST_CHECKS', '-DG_DISABLE_CAST_CHECKS',
] ]
endif endif

View File

@ -106,7 +106,6 @@ if get_option('debug')
] ]
elif buildtype != 'plain' elif buildtype != 'plain'
cogl_debug_c_args += [ cogl_debug_c_args += [
'-DG_DISABLE_CHECKS',
'-DG_DISABLE_CAST_CHECKS' '-DG_DISABLE_CAST_CHECKS'
] ]
endif endif