]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Ignore Clang error about setting _FILE_OFFSET_BITS
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 2 Sep 2020 08:20:18 +0000 (10:20 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 2 Sep 2020 08:20:18 +0000 (10:20 +0200)
src/system.h

index 1e03c99d9f50393a1bbb54b852c4459bc9ae5b91..86d7f304cd0754d3bf46773c034337c415ec791b 100644 (file)
 
 #include "config.h"
 
+#ifdef __clang__
+#pragma clang diagnostic push
+#if __has_warning("-Wreserved-id-macro")
+#pragma clang diagnostic ignored "-Wreserved-id-macro"
+#endif
+#endif
 #ifndef _FILE_OFFSET_BITS
 #define _FILE_OFFSET_BITS 64
 #endif
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
 
 #include <sys/file.h>
 #ifdef HAVE_SYS_MMAN_H