clang: Pair -Qn with -Qunused-arguments.

When assembling module wirh clang -Qn ends up on command line but later ignored
To avoid it breaking the compile, add -Qunused-arguments.

Signed-off-by: Vladimir Serbinenko <phcoder@google.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Vladimir Serbinenko 2019-03-25 17:43:18 +01:00 committed by Vincent Batts
parent ffa8d2c75b
commit 77ba219376

View file

@ -1228,12 +1228,12 @@ if test "x$target_cpu" = xarm; then
fi fi
AC_CACHE_CHECK([whether option -Qn works], grub_cv_target_cc_qn, [ AC_CACHE_CHECK([whether option -Qn works], grub_cv_target_cc_qn, [
CFLAGS="$TARGET_CFLAGS -Qn -Werror" CFLAGS="$TARGET_CFLAGS -Qn -Qunused-arguments -Werror"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
[grub_cv_target_cc_qn=yes], [grub_cv_target_cc_qn=yes],
[grub_cv_target_cc_qn=no])]) [grub_cv_target_cc_qn=no])])
if test "x$grub_cv_target_cc_qn" = xyes; then if test "x$grub_cv_target_cc_qn" = xyes; then
TARGET_CFLAGS="$TARGET_CFLAGS -Qn" TARGET_CFLAGS="$TARGET_CFLAGS -Qn -Qunused-arguments"
fi fi
# #