summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-02-24 17:27:21 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-02-27 14:08:52 +0100
commit9974eed353263cf10b966000f99f8e69233382a9 (patch)
tree62b6c8158c42301a9ed9c1f8a9c3c6c626a02863 /fpicker
parent361b7fc217c69e7a5b457f86f721ad00f2c8c7d0 (diff)
disable -Wshadow for KDE backends
KDE/Qt consider -Wshadow not worth the trouble, and the qhash workaround shows why.
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/Executable_kdefilepicker.mk5
-rw-r--r--fpicker/Library_fps_kde.mk5
-rw-r--r--fpicker/Library_fps_kde4.mk5
3 files changed, 15 insertions, 0 deletions
diff --git a/fpicker/Executable_kdefilepicker.mk b/fpicker/Executable_kdefilepicker.mk
index 9f8cca279303..a5c95fb092f9 100644
--- a/fpicker/Executable_kdefilepicker.mk
+++ b/fpicker/Executable_kdefilepicker.mk
@@ -58,4 +58,9 @@ $(eval $(call gb_Executable_add_generated_cxxobjects,kdefilepicker,\
$(eval $(call gb_Executable_set_warnings_not_errors,kdefilepicker))
+# KDE/Qt consider -Wshadow more trouble than benefit
+$(eval $(call gb_Executable_add_cxxflags,kdefilepicker,\
+ -Wno-shadow \
+))
+
# vim: set noet sw=4 ts=4:
diff --git a/fpicker/Library_fps_kde.mk b/fpicker/Library_fps_kde.mk
index 5624fd646754..f442f86ad7be 100644
--- a/fpicker/Library_fps_kde.mk
+++ b/fpicker/Library_fps_kde.mk
@@ -48,4 +48,9 @@ $(eval $(call gb_Library_add_exception_objects,fps_kde,\
fpicker/source/unx/kde_unx/UnxNotifyThread \
))
+# KDE/Qt consider -Wshadow more trouble than benefit
+$(eval $(call gb_Library_add_cxxflags,fps_kde,\
+ -Wno-shadow \
+))
+
# vim: set noet sw=4 ts=4:
diff --git a/fpicker/Library_fps_kde4.mk b/fpicker/Library_fps_kde4.mk
index 10a06c74a6d6..d806737209dc 100644
--- a/fpicker/Library_fps_kde4.mk
+++ b/fpicker/Library_fps_kde4.mk
@@ -65,4 +65,9 @@ $(eval $(call gb_Library_add_generated_cxxobjects,fps_kde4,\
CustomTarget/fpicker/source/unx/kde4/KDE4FilePicker.moc \
))
+# KDE/Qt consider -Wshadow more trouble than benefit
+$(eval $(call gb_Library_add_cxxflags,fps_kde4,\
+ -Wno-shadow \
+))
+
# vim: set noet sw=4 ts=4: