tlk00 / BitMagic

BitMagic Library
http://bitmagic.io
Other
412 stars 48 forks source link

bmdef.h (BM_FALLTHROUGH): Rework to consult __has(_cpp)_attribute. #45

Closed ucko closed 5 years ago

ucko commented 5 years ago

Dispatch on the basis of C++14 has_cpp_attribute for C++11 attribute syntax, and GCC's has_attribute extension for attribute.

The current logic turned out to result in warnings under ICC when using C++14 and below.

ghost commented 5 years ago

DeepCode Report (#a36e50)

DeepCode analyzed this pull request. There are no new issues.