Merge tag 'v0.21.18'
release v0.21.18
This commit is contained in:
@@ -143,6 +143,14 @@
|
||||
#define gcc_flatten
|
||||
#endif
|
||||
|
||||
#if GCC_CHECK_VERSION(7,0)
|
||||
#define gcc_fallthrough __attribute__((fallthrough))
|
||||
#elif CLANG_CHECK_VERSION(10,0)
|
||||
#define gcc_fallthrough [[fallthrough]]
|
||||
#else
|
||||
#define gcc_fallthrough
|
||||
#endif
|
||||
|
||||
#ifndef __cplusplus
|
||||
/* plain C99 has "restrict" */
|
||||
#define gcc_restrict restrict
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user