check: fix 'format string is not a string literal' warning with clang

Broke this when I removed the G_GNUC_PRINTF in a previous
commit to fix indentation, since it was not really needed.
Turns out unlike gcc clang warns though if a non-literal
format string is passed then. Fix indentation differently.

http://clang.llvm.org/docs/AttributeReference.html#format-gnu-format
This commit is contained in:
Tim-Philipp Müller 2015-09-28 16:01:55 +01:00
parent 2beb654a15
commit 9dc3ca9b75

View file

@ -1015,8 +1015,11 @@ gst_check_object_destroyed_on_unref (gpointer object_to_unref)
} }
/* For ABI compatibility with GStreamer < 1.5 */ /* For ABI compatibility with GStreamer < 1.5 */
/* *INDENT-OFF* */
void void
_fail_unless (int result, const char *file, int line, const char *expr, ...); _fail_unless (int result, const char *file, int line, const char *expr, ...)
G_GNUC_PRINTF (4, 5);
/* *INDENT-ON* */
void void
_fail_unless (int result, const char *file, int line, const char *expr, ...) _fail_unless (int result, const char *file, int line, const char *expr, ...)