diff options
author | Rafael Roquetto <rafael.roquetto@kdab.com> | 2016-01-18 15:37:11 -0200 |
---|---|---|
committer | Rafael Roquetto <rafael.roquetto@kdab.com> | 2016-01-22 18:06:39 +0000 |
commit | 684e5587d5024ff9523d76141d0befd1201dc24f (patch) | |
tree | b62dca4b9d5e16b81a318ff02cc3108f9cf0d6e8 /src/tools | |
parent | db2675d6fdb0d44fe1b040eda47f75e8bb35ce7a (diff) |
QNX: Fix -developer-build
-developer-build enables -Werror=undef, which uncovered a bug inside
qcompilerdetection.h.
According to the Dinkum headers, it is necessary to account for three different states
concerning the values of the _HAS_* macros:
1. undefined
2. 0
3. 1
Therefore, it is necessary to check both whether it is defined and if it is
not 0. Only checking whether a given macro is 0 will generate a trap by
-Werror=undef.
(__GLIBCXX__ is the sole exception).
Change-Id: Ib95e485698ee38858a1671d930d7e960b75bb041
Reviewed-by: James McDonnell <jmcdonnell@qnx.com>
Reviewed-by: Dan Cape <dcape@qnx.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions