Branch: refs/heads/kupsch/fix_deprecated_annotation
Home: https://github.com/dyninst/dyninst
Commit: 0d442742367ee83ef27ec72a00f9bcf75fad4d85
https://github.com/dyninst/dyninst/commit/0d442742367ee83ef27ec72a00f9bcf75fad4d85
Author: James A. Kupsch <kupsch@xxxxxxxxxxx>
Date: 2023-10-02 (Mon, 02 Oct 2023)
Changed paths:
M common/h/compiler_annotations.h
Log Message:
-----------
fix deprecated annotation warning using clang
clang's __has_cpp_attribute and __has_c_attribute always return true
if the compiler supports an standard attribute as a non-standard
extension for attributes intrdoduced in a later language standard
version than is being used, but then warns if used. Only use the
standard attribute if the compiler is clang when the language
standard is at least the version when the attributed was add.
- fix use of [[deprecated]] (added in in C++ 14 and C 23) with clang
- use now known C-23 __STDC_VERSION__ value 202311L
|