mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-08 19:40:34 +01:00
shared: avoid extra asserts in production code for NMRefString
These asserts were always intended as for extra debugging mode.
Don't enable them in production code.
Fixes: 908fadec96 ('shared: add NMRefString')
This commit is contained in:
parent
61ccdf1710
commit
5ed917a8c1
1 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ _ref_string_equal (gconstpointer pa, gconstpointer pb)
|
|||
static void
|
||||
_ASSERT (const RefString *rstr0)
|
||||
{
|
||||
#if NM_MORE_ASSERTS
|
||||
int r;
|
||||
|
||||
nm_assert (rstr0);
|
||||
|
|
@ -62,6 +63,7 @@ _ASSERT (const RefString *rstr0)
|
|||
|
||||
nm_assert (rstr0 == g_hash_table_lookup (gl_hash, rstr0));
|
||||
G_UNLOCK (gl_lock);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue