From ab909ed6fd1e0698429b6f7fbf81982bd77b7b2f Mon Sep 17 00:00:00 2001
From: "Yury V. Zaytsev" <yury@shurup.com>
Date: Thu, 30 May 2024 19:50:03 +0200
Subject: [PATCH] fixup! m4: add Werror when checking for compiler flags
---
m4.include/mc-cflags.m4 | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/m4.include/mc-cflags.m4 b/m4.include/mc-cflags.m4
index 264f5c106..7d7d07b0f 100644
a
|
b
|
AC_DEFUN([mc_CHECK_CFLAGS],[ |
13 | 13 | |
14 | 14 | mc_configured_cflags="" |
15 | 15 | |
16 | | dnl AC_MSG_CHECKING([CC is $CC]) |
17 | | |
18 | | dnl https://stackoverflow.com/questions/52557417/how-to-check-support-compile-flag-in-autoconf-for-clang |
19 | | case "$CC" in |
20 | | clang*) |
21 | | EXTRA_OPTION="-Werror" |
22 | | ;; |
23 | | *) |
24 | | EXTRA_OPTION="" |
25 | | ;; |
26 | | esac |
27 | | |
28 | 16 | dnl Sorted -f options: |
29 | 17 | case "$CC" in |
30 | 18 | gcc*) |