mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
libs/gst/check/gstcheck.h: Use const gchar * variables in fail_unless_equals_string macro to avoid compiler warnings ...
Original commit message from CVS: * libs/gst/check/gstcheck.h: Use const gchar * variables in fail_unless_equals_string macro to avoid compiler warnings (and don't use tabs for indenting).
This commit is contained in:
parent
f7c34e5c14
commit
8e2f05d8ce
2 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-08-15 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* libs/gst/check/gstcheck.h:
|
||||
Use const gchar * variables in fail_unless_equals_string
|
||||
macro to avoid compiler warnings (and don't use tabs for
|
||||
indenting).
|
||||
|
||||
2006-08-15 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* tools/gst-launch.c: (print_tag):
|
||||
|
|
|
@ -111,12 +111,12 @@ G_STMT_START { \
|
|||
} G_STMT_END;
|
||||
#define assert_equals_uint64(a, b) fail_unless_equals_uint64(a, b)
|
||||
|
||||
#define fail_unless_equals_string(a, b) \
|
||||
G_STMT_START { \
|
||||
gchar * first = a; \
|
||||
gchar * second = b; \
|
||||
fail_unless(strcmp (first, second) == 0, \
|
||||
"'" #a "' (%s) is not equal to '" #b"' (%s)", first, second); \
|
||||
#define fail_unless_equals_string(a, b) \
|
||||
G_STMT_START { \
|
||||
const gchar * first = a; \
|
||||
const gchar * second = b; \
|
||||
fail_unless(strcmp (first, second) == 0, \
|
||||
"'" #a "' (%s) is not equal to '" #b"' (%s)", first, second); \
|
||||
} G_STMT_END;
|
||||
#define assert_equals_string(a, b) fail_unless_equals_string(a, b)
|
||||
|
||||
|
|
Loading…
Reference in a new issue