mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 01:24:51 +02:00
utils/magic.h: ATTR_SENTINEL __attribute__ ((sentinel))
This commit is contained in:
committed by
Darryl L. Miles
parent
91bb9935f9
commit
2fcd024bdb
@@ -173,12 +173,14 @@ extern char AbortMessage[];
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define ATTR_FORMAT_PRINTF_1 __attribute__((format (printf,1,2)))
|
||||
#define ATTR_FORMAT_PRINTF_2 __attribute__((format (printf,2,3)))
|
||||
#define ATTR_SENTINEL __attribute__ ((sentinel))
|
||||
#define ATTR_UNREACHABLE __builtin_unreachable()
|
||||
#define ATTR_NORETURN __attribute__((noreturn))
|
||||
#define __unused__(x) x __attribute__((unused))
|
||||
#else
|
||||
#define ATTR_FORMAT_PRINTF_1 /* */
|
||||
#define ATTR_FORMAT_PRINTF_2 /* */
|
||||
#define ATTR_SENTINEL /* */
|
||||
#define ATTR_UNREACHABLE /* */
|
||||
#define ATTR_NORETURN /* */
|
||||
#define __unused__(x) x
|
||||
|
||||
Reference in New Issue
Block a user