libs/gst/check/gstcheck.h: Use const gchar * variables in fail_unless_equals_string...
authorTim-Philipp Müller <tim@centricular.net>
Tue, 15 Aug 2006 18:29:22 +0000 (18:29 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 15 Aug 2006 18:29:22 +0000 (18:29 +0000)
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).

ChangeLog
libs/gst/check/gstcheck.h

index 2bf07aa..626206e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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):
          More space on the left for the tag names, to cater
          for the 'extended comment' tag (not touching the
index 1d0a906..7a89d34 100644 (file)
@@ -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)