summaryrefslogtreecommitdiff
path: root/src/util/format.c
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-12-23 17:47:01 +0100
committerMax Kellermann <max@musicpd.org>2019-12-23 17:53:57 +0100
commita1afe9afc6879960389491b6fb587f14ae1ae5df (patch)
treee0016b1b1f409e81c82a183191305ee35bf28416 /src/util/format.c
parentfe598e7d30d82794560df053623a16fee8d3fb9c (diff)
util/Compiler.h: add gcc_fallthrough
Works around build failures with ccache which may feed processed code to GCC, which doesn't have the "fall through" code comments.
Diffstat (limited to 'src/util/format.c')
-rw-r--r--src/util/format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/format.c b/src/util/format.c
index 62099b32e..10b53c771 100644
--- a/src/util/format.c
+++ b/src/util/format.c
@@ -19,6 +19,7 @@
*/
#include "format.h"
+#include "util/Compiler.h"
#include <stdbool.h>
#include <stdio.h>
@@ -238,6 +239,7 @@ format_object2(const char *format, const char **last, const void *object,
}
/* fall through */
+ gcc_fallthrough;
default:
/* pass-through non-escaped portions of the format string */