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:
Tim-Philipp Müller 2006-08-15 18:29:22 +00:00
parent f7c34e5c14
commit 8e2f05d8ce
2 changed files with 13 additions and 6 deletions

View file

@ -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> 2006-08-15 Tim-Philipp Müller <tim at centricular dot net>
* tools/gst-launch.c: (print_tag): * tools/gst-launch.c: (print_tag):

View file

@ -111,12 +111,12 @@ G_STMT_START { \
} G_STMT_END; } G_STMT_END;
#define assert_equals_uint64(a, b) fail_unless_equals_uint64(a, b) #define assert_equals_uint64(a, b) fail_unless_equals_uint64(a, b)
#define fail_unless_equals_string(a, b) \ #define fail_unless_equals_string(a, b) \
G_STMT_START { \ G_STMT_START { \
gchar * first = a; \ const gchar * first = a; \
gchar * second = b; \ const gchar * second = b; \
fail_unless(strcmp (first, second) == 0, \ fail_unless(strcmp (first, second) == 0, \
"'" #a "' (%s) is not equal to '" #b"' (%s)", first, second); \ "'" #a "' (%s) is not equal to '" #b"' (%s)", first, second); \
} G_STMT_END; } G_STMT_END;
#define assert_equals_string(a, b) fail_unless_equals_string(a, b) #define assert_equals_string(a, b) fail_unless_equals_string(a, b)