Fix build with Qt 5.9.1 and clang

Authored by kfunk on Jul 8 2017, 11:00 PM.

Description

Fix build with Qt 5.9.1 and clang

Summary:
Qt 5.9.1 expands Q_REQUIRED_RESULT to the [[nodiscard]] attribute
(see commit d254d8c19 in qtbase). This breaks the build with clang
compilers because [[nodiscard]] cannot be used at the end of a function
declaration:

error: 'nodiscard' attribute cannot be applied to types

For the record, GCC just issues a 'attribute ignored' warning when
[[nodiscard]] is used at the end of a declaration

BUG: 382135
FIXED-IN: 5.1.2

Details

Committed
kfunkJul 8 2017, 11:00 PM
Parents
R33:6f9a49dfed0e: cmake: sort list of files to pack in tar.bz2 archives
Branches
Unknown
Tags
Unknown