aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/compiler.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-10-01 11:27:25 -0400
committerJack Lloyd <[email protected]>2019-10-01 11:27:25 -0400
commit6bae463161e9be66e1b175cdefbabd16d1f61c98 (patch)
tree765800b4984cb8ba0704bdae7ba4c161bb8734ae /src/lib/utils/compiler.h
parent87d36c3b1152114aa48f1a4351983c22a4d87174 (diff)
Have Clang print the deprecated message
I cannot figure out exactly when Clang started supporting a message on the deprecated attribute. It is documented as supporting such for 3.9. But in 3.8.0 and all earlier versions of the reference, the deprecated attribute isn't mentioned at all. Just enable it for all versions. If there happens to be a version of Clang which both doesn't support messages on deprecated attributes but can otherwise sucessfully compile the library, someone will probably tell us about it.
Diffstat (limited to 'src/lib/utils/compiler.h')
-rw-r--r--src/lib/utils/compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/compiler.h b/src/lib/utils/compiler.h
index a05de1601..6e3f14418 100644
--- a/src/lib/utils/compiler.h
+++ b/src/lib/utils/compiler.h
@@ -100,7 +100,7 @@
#if !defined(BOTAN_NO_DEPRECATED_WARNINGS)
#if defined(__clang__)
- #define BOTAN_DEPRECATED(msg) __attribute__ ((deprecated))
+ #define BOTAN_DEPRECATED(msg) __attribute__ ((deprecated(msg)))
#define BOTAN_DEPRECATED_HEADER(hdr) _Pragma("message \"this header is deprecated\"")
#if !defined(BOTAN_IS_BEING_BUILT)