From 4a138d84078ab89a8f8bc636d5c4260951d4ee11 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sun, 8 Jan 2017 01:26:52 -0600 Subject: [PATCH] Shut clang's warning that confuses configure. Warning causes gdb's configure to not detect declarations of LONG_MIN/MAX. Found-by: Kirill Smirnov Signed-off-by: Alexey Neyman --- scripts/build/debug/300-gdb.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index ba135911..3d3af7b1 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -105,6 +105,12 @@ do_debug_gdb_build() { CC_for_gdb+=" -static" LD_for_gdb+=" -static" fi + case "${CT_HOST}" in + *darwin*) + # FIXME: Really, we should be testing for host compiler being clang. + CC_for_gdb+=" -Qunused-arguments" + ;; + esac # Fix up whitespace. Some older GDB releases (e.g. 6.8a) get confused if there # are multiple consecutive spaces: sub-configure scripts replace them with a