[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Pair -Qn with -Qunused-arguments.
From: |
Vladimir 'phcoder' Serbinenko |
Subject: |
[PATCH] Pair -Qn with -Qunused-arguments. |
Date: |
Tue, 26 Mar 2019 15:11:16 +0100 |
>From fb3c8789bba1ef744acf950b0a36345d9d04e2e6 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <address@hidden>
Date: Mon, 25 Mar 2019 17:43:18 +0100
Subject: [PATCH] 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 <address@hidden>
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 2f53a5683..8578d01b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1228,12 +1228,12 @@ if test "x$target_cpu" = xarm; then
fi
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([[]], [[]])],
[grub_cv_target_cc_qn=yes],
[grub_cv_target_cc_qn=no])])
if test "x$grub_cv_target_cc_qn" = xyes; then
- TARGET_CFLAGS="$TARGET_CFLAGS -Qn"
+ TARGET_CFLAGS="$TARGET_CFLAGS -Qn -Qunused-arguments"
fi
#
--
2.11.0
--
Regards
Vladimir 'phcoder' Serbinenko
- [PATCH] Pair -Qn with -Qunused-arguments.,
Vladimir 'phcoder' Serbinenko <=