diff options
author | Ryan Libby <rlibby@FreeBSD.org> | 2019-12-21 02:43:20 +0000 |
---|---|---|
committer | Ryan Libby <rlibby@FreeBSD.org> | 2019-12-21 02:43:20 +0000 |
commit | 4c235c008383701d66b8e15878a08c7bccf3664f (patch) | |
tree | fef72475e547bd94e4119452fe64886eaf8f0957 /sys/ofed | |
parent | 0e47020f7f20c9ecf5d796497064f1ff124fbfa6 (diff) | |
download | src-4c235c008383701d66b8e15878a08c7bccf3664f.tar.gz src-4c235c008383701d66b8e15878a08c7bccf3664f.zip |
gcc: quiet Wattribute for no_sanitize("address")
This is an unfortunate instance where the __has_attribute check does
not function usefully. Gcc does have the attribute, but for gcc it only
applies to functions, not variables, and trying to apply it to a
variable generates Wattribute. So far we only apply the attribute to
variables. Only enable the attribute for clang, for now.
Reviewed by: Anton Rang <rang at acm.org>
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D22875
Notes
Notes:
svn path=/head/; revision=355969
Diffstat (limited to 'sys/ofed')
0 files changed, 0 insertions, 0 deletions