NetworkManager/shared
Thomas Haller 00f58adb16 build: remove assertion messages in non-debug build
Assertions like g_assert*() and g_return_*() contain the stringified
test expression. This string ends up in the binary and increases its
size.

We usually don't have failing assertions. These string are a waste,
instead the file and line number shall suffice.

It reduces the striped size of the NetworkManager binary from 2500k
to 2392k, that is -108k, -4.3%.

This changes

 - "g_assert (1 == 2);"
   from: NetworkManager:ERROR:source.c:347:some_function: assertion failed: (1 == 2)
   to:   NetworkManager:ERROR:source.c:347:<unknown-fcn>: assertion failed: (<dropped>)

 - "g_return_if_fail (1 == 2);"
   from: (process:21024): NetworkManager-CRITICAL **: some_function: assertion '1 == 2' failed
   to:   (process:21024): NetworkManager-CRITICAL **: ((source.c:347)): assertion '<dropped>' failed

When doing a non-debug build, those string are now removed. Debug-builds
can be enabled by setting --with-more-assert=$LEVEL to larger then zero.

https://bugzilla.gnome.org/show_bug.cgi?id=767296
2016-06-09 12:03:39 +02:00
..
gsystem-local-alloc.h build: rename directory "include" to "shared" 2015-12-24 11:42:37 +01:00
Makefile.am shared: add "nm-common-macros.h" header 2016-06-01 19:06:35 +02:00
nm-common-macros.h all: move NM_AUTH_PERMISSION_* defines to "nm-common-macros.h" header 2016-06-01 19:06:35 +02:00
nm-dbus-compat.h build: rename directory "include" to "shared" 2015-12-24 11:42:37 +01:00
nm-default.h build: remove assertion messages in non-debug build 2016-06-09 12:03:39 +02:00
nm-glib.h nm-glib: backport g_steal_pointer() from glib-2.44 2016-05-12 14:25:36 +02:00
nm-macros-internal.h macros: add macro _nm_printf() for function attribute 2016-06-05 12:22:01 +02:00
nm-shared-utils.c utils: refactor _nm_utils_ascii_str_to_int64() 2016-05-03 11:52:39 +02:00
nm-shared-utils.h shared: move nm_utils_ascii_str_to_bool() to shared/nm-shared-utils.h 2016-04-19 13:47:41 +02:00
nm-test-libnm-utils.h libnm/tests: add test code driving python test service 2015-12-26 16:43:49 +01:00
nm-test-utils-impl.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-test-utils.h build: remove assertion messages in non-debug build 2016-06-09 12:03:39 +02:00
nm-version-macros.h.in release: bump version to 1.3.0 (development) 2016-04-05 22:22:58 +02:00