projects
/
NetworkManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab24564
)
shared: add nm_assert_not_reached()
author
Thomas Haller
<thaller@redhat.com>
Wed, 16 Mar 2016 13:50:23 +0000
(14:50 +0100)
committer
Thomas Haller
<thaller@redhat.com>
Thu, 17 Mar 2016 14:00:48 +0000
(15:00 +0100)
shared/nm-macros-internal.h
patch
|
blob
|
history
diff --git
a/shared/nm-macros-internal.h
b/shared/nm-macros-internal.h
index
1f638ba
..
1eedadd
100644
(file)
--- a/
shared/nm-macros-internal.h
+++ b/
shared/nm-macros-internal.h
@@
-287,8
+287,10
@@
_NM_IN_STRSET_streq (const char *x, const char *s)
#if NM_MORE_ASSERTS
#define nm_assert(cond) G_STMT_START { g_assert (cond); } G_STMT_END
+#define nm_assert_not_reached() G_STMT_START { g_assert_not_reached (); } G_STMT_END
#else
#define nm_assert(cond) G_STMT_START { if (FALSE) { if (cond) { } } } G_STMT_END
+#define nm_assert_not_reached() G_STMT_START { ; } G_STMT_END
#endif
/*****************************************************************************/