aboutsummaryrefslogtreecommitdiff
path: root/src/common/tuklib_common.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-01-23 23:44:58 +0200
committerJia Tan <jiat0218@gmail.com>2023-01-24 20:20:51 +0800
commit2f78ecc5939b3d97ddfc2a6bd31b50108a28d0a2 (patch)
treeb198662ca11e2a0cf8d24d96026ab8ed23e00eca /src/common/tuklib_common.h
parenttuklib_physmem: Clean up the way -Wcast-function-type is silenced on Windows. (diff)
downloadxz-2f78ecc5939b3d97ddfc2a6bd31b50108a28d0a2.tar.xz
Revert "tuklib_common: Define __has_warning if it is not defined."
This reverts commit 82e3c968bfa10e3ff13333bd9cbbadb5988d6766. Macros in the reserved namespace (_foo or __foo) shouldn't be #defined without a very good reason. Here the alternative would have been to #define tuklib_has_warning(str) to an approriate value. Also the tuklib_* files should stay namespace clean if possible.
Diffstat (limited to 'src/common/tuklib_common.h')
-rw-r--r--src/common/tuklib_common.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/common/tuklib_common.h b/src/common/tuklib_common.h
index 8942e625..b1f531ea 100644
--- a/src/common/tuklib_common.h
+++ b/src/common/tuklib_common.h
@@ -68,11 +68,4 @@
# define TUKLIB_DOSLIKE 1
#endif
-// Clang has a macro to check if the compiler supports a certain warning.
-// If this macro is used with a compiler that does not support this macro
-// (like gcc), then it will cause a preprocessor error.
-#ifndef __has_warning
-# define __has_warning(warn) 0
-#endif
-
#endif