mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-26 14:18:36 +00:00
log: remove spice_static_assert macro
The macro was misused and not doing static check. Spice have other working static check macros to use. The macro is used only by spice-common so removing it does not cause issues to other depending projects. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
2ff5c77fff
commit
dde1fe3533
@ -94,11 +94,6 @@ void spice_log(const char *log_domain,
|
||||
} \
|
||||
} G_STMT_END
|
||||
|
||||
/* FIXME: improve that some day.. */
|
||||
#define spice_static_assert(x) SPICE_STMT_START { \
|
||||
spice_assert(x); \
|
||||
} SPICE_STMT_END
|
||||
|
||||
SPICE_END_DECLS
|
||||
|
||||
#endif /* H_SPICE_LOG */
|
||||
|
||||
@ -878,7 +878,7 @@ static void find_model_params(Encoder *encoder,
|
||||
/* The only valid values are 1, 3 and 5.
|
||||
0, 2 and 4 are obsolete and the rest of the
|
||||
values are considered out of the range. */
|
||||
spice_static_assert (evol == 1 || evol == 3 || evol == 5);
|
||||
SPICE_VERIFY(evol == 1 || evol == 3 || evol == 5);
|
||||
spice_assert(bpc <= 8 && bpc > 0);
|
||||
|
||||
*ncounters = 8;
|
||||
|
||||
@ -71,7 +71,7 @@ static unsigned int FNAME(golomb_decoding)(const unsigned int l, const unsigned
|
||||
static void FNAME(update_model)(CommonState *state, s_bucket * const bucket,
|
||||
const BYTE curval)
|
||||
{
|
||||
spice_static_assert(BPC >= 1);
|
||||
SPICE_VERIFY(BPC >= 1);
|
||||
spice_return_if_fail (bucket != NULL);
|
||||
|
||||
const unsigned int bpp = BPC;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user