Ticket #4524: 0001-fixup-m4-add-Werror-when-checking-for-compiler-flags.patch

File 0001-fixup-m4-add-Werror-when-checking-for-compiler-flags.patch, 911 bytes (added by zaytsev, 5 months ago)
  • m4.include/mc-cflags.m4

    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],[ 
    1313 
    1414    mc_configured_cflags="" 
    1515 
    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  
    2816    dnl Sorted -f options: 
    2917    case "$CC" in 
    3018    gcc*)