aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-11-08 18:21:07 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2014-11-11 17:31:43 +0000
commitbd9ff6bb8a13df618beb8ca132bbc837fe648208 (patch)
tree9d68f3b0be415d112ba49e2ac468661654950be5 /tools
parent7e2ede3b173a9a8de9b7abc369a6713b27f63e5c (diff)
Add tools for fix -Wdocumentation
Use pragma to disable -Wdocumentation when include glib.h, gmodule or gtk/gtk.h Change-Id: I576c0d5c4a12ac3b505ac9543646356ff29ac814 Reviewed-on: https://code.wireshark.org/review/5198 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/fix_pragma_wdocumentation.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/fix_pragma_wdocumentation.sh b/tools/fix_pragma_wdocumentation.sh
new file mode 100755
index 0000000000..ccc2ac4ad6
--- /dev/null
+++ b/tools/fix_pragma_wdocumentation.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+# Copyright 2014, Alexis La Goutte (See AUTHORS file)
+#
+# For clang user: launch the script to add pragma for remove warning about -Wdocumentation
+# (using on Petri Dish)
+
+
+find . ! -name "*.sh" -type f -exec sed -i 's/#include <glib.h>/#pragma clang diagnostic push\n#pragma clang diagnostic ignored "-Wdocumentation"\n#include <glib.h>\n#pragma clang diagnostic pop/g' {} \;
+
+find . ! -name "*.sh" -type f -exec sed -i 's/#include <gtk\/gtk.h>/#pragma clang diagnostic push\n#pragma clang diagnostic ignored "-Wdocumentation"\n#include <gtk\/gtk.h>\n#pragma clang diagnostic pop/g' {} \;
+
+find . ! -name "*.sh" -type f -exec sed -i 's/#include <gmodule.h>/#pragma clang diagnostic push\n#pragma clang diagnostic ignored "-Wdocumentation"\n#include <gmodule.h>\n#pragma clang diagnostic pop/g' {} \;