Use -Wno-gnu-zero-variadic-macro-arguments more
ClosedPublic

Authored by kfunk on Apr 4 2017, 5:40 PM.

Details

Summary

Add it to KDECompilerSettings.cmake instead of
KDEFrameworkCompilerSettings.cmake.

Users can then just enable -pedantic without worrying about this
particular the gnu-zero-variadic-macro-arguments warning.

This fixes some warnings in e.g. kdenlive

Diff Detail

Repository
R240 Extra CMake Modules
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kfunk created this revision.Apr 4 2017, 5:40 PM
Restricted Application added projects: Frameworks, Build System. · View Herald TranscriptApr 4 2017, 5:40 PM
Restricted Application added subscribers: Build System, Frameworks. · View Herald Transcript
kfunk updated this revision to Diff 13096.Apr 4 2017, 6:20 PM

Re-enable for Clang

apol added a subscriber: apol.Apr 4 2017, 10:05 PM

+1

Which warnings? Are they proper warnings that should be fixed?

kfunk added a comment.Apr 5 2017, 9:08 AM
In D5302#99816, @apol wrote:

+1

Which warnings? Are they proper warnings that should be fixed?

See comment inside the source code: It's triggered by normal usage from qCDebug()...

apol accepted this revision.Apr 5 2017, 10:28 AM
This revision is now accepted and ready to land.Apr 5 2017, 10:28 AM
kfunk added a comment.Apr 5 2017, 11:13 AM

FYI: I'll wait with pushing until v5.33 is released.

dfaure edited edge metadata.Apr 5 2017, 11:57 AM

5.33 is tagged since last saturday, you can push without waiting. It's always summer in master, for KF5.

This revision was automatically updated to reflect the committed changes.