Bug 323579

Summary: Spurious Clang warnings
Product: [Developer tools] buildsystem Reporter: Mark Kretschmann <kretschmann>
Component: KDE4 (cmake)Assignee: Raphael Kubo da Costa <rakuco>
Status: RESOLVED FIXED    
Severity: normal CC: kretschmann, mail, rakuco
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.1
Sentry Crash Report:

Description Mark Kretschmann 2013-08-16 06:40:00 UTC
When building KDE software with Clang and KDE 4.11.0, some bogus warnings are printed that should be suppressed. Example:

[  3%] Building CXX object shared/CMakeFiles/amarokshared.dir/tag_helpers/APETagHelper.o
clang: warning: argument unused during compilation: '-fno-check-new'
clang: warning: argument unused during compilation: '-fno-reorder-blocks'
clang: warning: argument unused during compilation: '-fno-schedule-insns'


Reproducible: Always
Comment 1 Raphael Kubo da Costa 2013-08-16 09:19:17 UTC
I intend to address this and other issues in a patch that makes clang's support in FindKDE4Internal.cmake more in sync with the version we use on FreeBSD.
Comment 2 Raphael Kubo da Costa 2013-08-21 10:47:14 UTC
Fixed in http://quickgit.kde.org/?p=kdelibs.git&a=commit&h=90cb7ba760584a8010afef65fa14e649195af6c6

(I used the wrong email address in the commit so CCBUG didn't work :-)
Comment 3 Mark Kretschmann 2013-08-21 10:54:15 UTC
Thanks a lot, Raphael :)