[gtranslator] Enable checks in release to avoid crash
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Enable checks in release to avoid crash
- Date: Mon, 29 Oct 2018 12:07:30 +0000 (UTC)
commit d654ff92bfbd1c1f486b1ec62bf0858f1fb99648
Author: Daniel GarcĂa Moreno <danigm wadobo com>
Date: Mon Oct 29 12:49:43 2018 +0100
Enable checks in release to avoid crash
The G_DISABLE_CHECKS flag disables all the g_return_if_fail functions
and we're using that kind of function for early returns when the param
aren't correct so we need to remove that to make the app works in
release mode.
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index f9efcdf5..c178ece9 100644
--- a/meson.build
+++ b/meson.build
@@ -81,7 +81,7 @@ if gtr_debug
elif gtr_buildtype == 'release'
common_flags += [
'-DG_DISABLE_ASSERT',
- '-DG_DISABLE_CHECKS',
+ #'-DG_DISABLE_CHECKS',
'-DG_DISABLE_CAST_CHECKS',
]
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]