mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
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:
parent
3037172f48
commit
5d3c58902f
1 changed files with 4 additions and 1 deletions
|
@ -1015,8 +1015,11 @@ gst_check_object_destroyed_on_unref (gpointer object_to_unref)
|
|||
}
|
||||
|
||||
/* For ABI compatibility with GStreamer < 1.5 */
|
||||
/* *INDENT-OFF* */
|
||||
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
|
||||
_fail_unless (int result, const char *file, int line, const char *expr, ...)
|
||||
|
|
Loading…
Reference in a new issue