mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-01-09 05:34:12 +00:00
log: Kill spice_warn_if
It's redundant with spice_warn_if_fail(), and can even be confusing. Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
df56d585cb
commit
0a6580d2e6
@ -95,12 +95,6 @@ void spice_log(const char *log_domain,
|
||||
} \
|
||||
} G_STMT_END
|
||||
|
||||
#define spice_warn_if(x) G_STMT_START { \
|
||||
if G_UNLIKELY(x) { \
|
||||
spice_warning("condition `%s' reached", #x); \
|
||||
} \
|
||||
} G_STMT_END
|
||||
|
||||
#define spice_assert(x) G_STMT_START { \
|
||||
if G_LIKELY(x) { } else { \
|
||||
spice_error("assertion `%s' failed", #x); \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user