Print this page
cpp: enable as many warnings as practical

Split Close
Expand all
Collapse all
          --- old/cpp/Makefile
          +++ new/cpp/Makefile
↓ open down ↓ 25 lines elided ↑ open up ↑
  26   26  PROG =          cpp$(STRAP)
  27   27  PROGDIR =       /usr/lib
  28   28  
  29   29  OBJS = \
  30   30          cpp.o$(STRAP) \
  31   31          y.tab.o$(STRAP)
  32   32  
  33   33  CLEANFILES += \
  34   34          y.tab.c$(STRAP)
  35   35  
  36      -CFLAGS +=       -O2
       36 +CERRWARN=       -Wall -Wextra
       37 +CERRWARN +=     -Wno-unknown-pragmas
       38 +CERRWARN +=     -Wno-sign-compare
       39 +CERRWARN +=     -Wno-unused-label
       40 +CFLAGS +=       -O2 $(CERRWARN)
  37   41  LD =            $(GCC)
  38   42  
  39   43  COMPILE.c =     $(GCC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
  40   44  LINK.prog =     $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
  41   45  PROTOFILES =    $(DESTDIR)$(PROGDIR)/$(PROG)
  42   46  
  43   47  all: $(PROG)
  44   48  
  45   49  install: $(PROTOFILES)
  46   50  
↓ open down ↓ 28 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX