summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qmalloc.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2017-04-03 20:48:33 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2017-04-03 21:26:09 +0000
commitc807dc3c122a2e21d6446231cd94f51cb0cf65d2 (patch)
treed1aadd06112e8f6c5a29e640c937fd13833c203f /src/corelib/global/qmalloc.cpp
parente1d3c8e203cc6b47535a846a143b808894942446 (diff)
Use fallthrough attributes only in C++ mode
GCC 7 defines __has_cpp_attribute even when invoked as "gcc" (possibly, Clang does the same, according to a comment in the code, did not test myself). Hence, define the fallthrough declaration (as C++11 attributes) only when compiling as C++, otherwise we pick them up even in C mode, and they cause build failures. Change-Id: I3f13205e014bb1dea59ee3664b29111521a7eae3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/corelib/global/qmalloc.cpp')
0 files changed, 0 insertions, 0 deletions