[kdevplatform] [Bug 382135] error: 'nodiscard' attribute cannot be applied to types

2017-07-09 Thread Kevin Funk
https://bugs.kde.org/show_bug.cgi?id=382135

--- Comment #3 from Kevin Funk  ---
Done, thanks for reporting!

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevplatform] [Bug 382135] error: 'nodiscard' attribute cannot be applied to types

2017-07-09 Thread Yurii Kolesnykov
https://bugs.kde.org/show_bug.cgi?id=382135

--- Comment #2 from Yurii Kolesnykov  ---
Thanks!
Please merge it to master.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevplatform] [Bug 382135] error: 'nodiscard' attribute cannot be applied to types

2017-07-08 Thread Kevin Funk
https://bugs.kde.org/show_bug.cgi?id=382135

Kevin Funk  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
   Version Fixed In||5.1.2
 Resolution|--- |FIXED
  Latest Commit||https://commits.kde.org/kde
   ||vplatform/94fca963169b9d442
   ||1acb5b4ab22a043aed29fea

--- Comment #1 from Kevin Funk  ---
Git commit 94fca963169b9d4421acb5b4ab22a043aed29fea by Kevin Funk.
Committed on 08/07/2017 at 23:00.
Pushed by kfunk into branch '5.1'.

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
FIXED-IN: 5.1.2

M  +1-1project/abstractfilemanagerplugin.cpp

https://commits.kde.org/kdevplatform/94fca963169b9d4421acb5b4ab22a043aed29fea

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevplatform] [Bug 382135] error: 'nodiscard' attribute cannot be applied to types

2017-07-08 Thread Yurii Kolesnykov
https://bugs.kde.org/show_bug.cgi?id=382135

Yurii Kolesnykov  changed:

   What|Removed |Added

 CC||yuriko...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.