summaryrefslogtreecommitdiff
path: root/scripts/build/debug/300-gdb.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-03-07 08:15:29 (GMT)
committerAlexey Neyman <stilor@att.net>2017-03-07 08:15:29 (GMT)
commit2ef7d36efbfd7754a862d3840f0ea47ccec2f7df (patch)
tree29b73e42c85bac83272e9416f455c6572fdc4118 /scripts/build/debug/300-gdb.sh
parent3e94b4f6803159c241b8429315311f7c003f2b74 (diff)
Disable format warnings for clang
It picks up gettext string and results in [ERROR] messages from ct-ng when gettext strings happen inside an error() call. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/debug/300-gdb.sh')
-rw-r--r--scripts/build/debug/300-gdb.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index a5ac7f9..b2cb08f 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -102,6 +102,11 @@ do_debug_gdb_build() {
# FIXME: Really, we should be testing for host compiler being clang.
CC_for_gdb+=" -Qunused-arguments"
CXX_for_gdb+=" -Qunused-arguments"
+ # clang detects the line from gettext's _ macro as format string
+ # not being a string literal and produces a lot of warnings - which
+ # ct-ng's logger faithfully relays to user if this happens in the
+ # error() function. Suppress them.
+ cross_extra_config+=( "--enable-build-warnings=,-Wno-format-nonliteral,-Wno-format-security" )
;;
esac