mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 08:00:18 +01:00
glib-aux: avoid #if in "nm-str-buf.h"
NM_MORE_ASSERT is a compile time constant. The compiler can optimize it away just fine.
This commit is contained in:
parent
532f3e34a8
commit
560feecb4c
1 changed files with 4 additions and 4 deletions
|
|
@ -387,10 +387,10 @@ static inline gboolean
|
|||
nm_str_buf_is_initalized(NMStrBuf *strbuf)
|
||||
{
|
||||
nm_assert(strbuf);
|
||||
#if NM_MORE_ASSERTS
|
||||
if (strbuf->_priv_str)
|
||||
_nm_str_buf_assert(strbuf);
|
||||
#endif
|
||||
if (NM_MORE_ASSERTS > 0) {
|
||||
if (strbuf->_priv_str)
|
||||
_nm_str_buf_assert(strbuf);
|
||||
}
|
||||
return !!strbuf->_priv_str;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue