Ticket #3430: mc-indroduct-wundef-check-04.patch

File mc-indroduct-wundef-check-04.patch, 607 bytes (added by and, 10 years ago)
  • m4.include/mc-cflags.m4

    introduce -Wundef check to catch macro typos
    more infos about motivation at https://sourceware.org/glibc/wiki/Wundef
    
    patch 04/04: use -Wundef compiler option for future compile checks
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    
    a b  
    7272    MC_CHECK_ONE_CFLAG([-Wstrict-prototypes]) 
    7373    MC_CHECK_ONE_CFLAG([-Wswitch]) 
    7474    MC_CHECK_ONE_CFLAG([-Wtype-limits]) 
     75    MC_CHECK_ONE_CFLAG([-Wundef]) 
    7576    MC_CHECK_ONE_CFLAG([-Wuninitialized]) 
    7677    MC_CHECK_ONE_CFLAG([-Wunused-but-set-variable]) 
    7778    MC_CHECK_ONE_CFLAG([-Wunused-function])