Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/file/Makefile
          +++ new/usr/src/cmd/file/Makefile
↓ open down ↓ 33 lines elided ↑ open up ↑
  34   34  LOBJS=  file.o elf_read32.o elf_read64.o magicutils.o
  35   35  OBJS=   $(LOBJS) elfcap.o
  36   36  XPG4OBJS= $(OBJS:%.o=xpg4_%.o)
  37   37  SRCS=   file.c elf_read.c magicutils.c $(ELFCAP)/elfcap.c
  38   38  
  39   39  include ../Makefile.cmd
  40   40  
  41   41  CSTD=   $(CSTD_GNU99)
  42   42  C99LMODE= -Xc99=%all
  43   43  
  44      -CERRWARN += -_gcc=-Wno-uninitialized
       44 +CERRWARN += $(CNOWARN_UNINIT)
  45   45  CERRWARN += -_gcc=-Wno-type-limits
  46   46  
  47   47  POFILE= file_all.po
  48   48  POFILES= $(SRCS:%.c=%.po)
  49   49  
  50   50  # The debug binary can be built using the flags
  51   51  # SOURCEDEBUG=yes CGLOBALSTATIC=
  52   52  # This will avoid the multiple symbols definition error
  53   53  # for static global variables in elf_read32.o and elf_read64.o
  54   54  
↓ open down ↓ 58 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX