forked from osmocom/wireshark
bd9ff6bb8a
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>
13 lines
814 B
Bash
Executable file
13 lines
814 B
Bash
Executable file
#!/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' {} \;
|