Print this page
10804 Enable unused warnings outside of uts
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Toomas Soome <tsoome@me.com>


  75 
  76 BLTOBJ =        msg.o
  77 ELFCAPOBJ =     elfcap.o
  78 
  79 OBJECTS =       $(BLTOBJ) $(G_MACHOBJS32) $(G_MACHOBJS64) \
  80                 $(L_MACHOBJS32) $(L_MACHOBJS64) \
  81                 $(COMOBJS) $(COMOBJS32) $(COMOBJS64) \
  82                 $(TOOLOBJS) $(E_TOOLOBJS) $(AVLOBJ) $(ELFCAPOBJ)
  83 
  84 include         $(SRC)/lib/Makefile.lib
  85 include         $(SRC)/cmd/sgs/Makefile.com
  86 
  87 SRCDIR =        ../common
  88 
  89 CERRWARN += -_gcc=-Wno-unused-value
  90 CERRWARN += -_gcc=-Wno-parentheses
  91 CERRWARN += -_gcc=-Wno-uninitialized
  92 CERRWARN += -_gcc=-Wno-switch
  93 CERRWARN += -_gcc=-Wno-char-subscripts
  94 CERRWARN += -_gcc=-Wno-type-limits

  95 
  96 SMOFF += no_if_block
  97 
  98 # Location of the shared relocation engines maintained under usr/src/uts.
  99 #
 100 KRTLD_I386 = $(SRCBASE)/uts/$(VAR_PLAT_i386)/krtld
 101 KRTLD_AMD64 = $(SRCBASE)/uts/$(VAR_PLAT_amd64)/krtld
 102 KRTLD_SPARC = $(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld
 103 
 104 
 105 CPPFLAGS +=     -DUSE_LIBLD_MALLOC -I$(SRCBASE)/lib/libc/inc \
 106                     -I$(SRCBASE)/uts/common/krtld -I$(SRCBASE)/uts/sparc \
 107                     $(VAR_LIBLD_CPPFLAGS)
 108 LDLIBS +=       $(CONVLIBDIR) $(CONV_LIB) $(LDDBGLIBDIR) $(LDDBG_LIB) \
 109                     $(ELFLIBDIR) -lelf $(DLLIB) -lc
 110 
 111 DYNFLAGS +=     $(VERSREF) $(CC_USE_PROTO) '-R$$ORIGIN'
 112 
 113 native:=        DYNFLAGS        += $(CONVLIBDIR)
 114 




  75 
  76 BLTOBJ =        msg.o
  77 ELFCAPOBJ =     elfcap.o
  78 
  79 OBJECTS =       $(BLTOBJ) $(G_MACHOBJS32) $(G_MACHOBJS64) \
  80                 $(L_MACHOBJS32) $(L_MACHOBJS64) \
  81                 $(COMOBJS) $(COMOBJS32) $(COMOBJS64) \
  82                 $(TOOLOBJS) $(E_TOOLOBJS) $(AVLOBJ) $(ELFCAPOBJ)
  83 
  84 include         $(SRC)/lib/Makefile.lib
  85 include         $(SRC)/cmd/sgs/Makefile.com
  86 
  87 SRCDIR =        ../common
  88 
  89 CERRWARN += -_gcc=-Wno-unused-value
  90 CERRWARN += -_gcc=-Wno-parentheses
  91 CERRWARN += -_gcc=-Wno-uninitialized
  92 CERRWARN += -_gcc=-Wno-switch
  93 CERRWARN += -_gcc=-Wno-char-subscripts
  94 CERRWARN += -_gcc=-Wno-type-limits
  95 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
  96 
  97 SMOFF += no_if_block
  98 
  99 # Location of the shared relocation engines maintained under usr/src/uts.
 100 #
 101 KRTLD_I386 = $(SRCBASE)/uts/$(VAR_PLAT_i386)/krtld
 102 KRTLD_AMD64 = $(SRCBASE)/uts/$(VAR_PLAT_amd64)/krtld
 103 KRTLD_SPARC = $(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld
 104 
 105 
 106 CPPFLAGS +=     -DUSE_LIBLD_MALLOC -I$(SRCBASE)/lib/libc/inc \
 107                     -I$(SRCBASE)/uts/common/krtld -I$(SRCBASE)/uts/sparc \
 108                     $(VAR_LIBLD_CPPFLAGS)
 109 LDLIBS +=       $(CONVLIBDIR) $(CONV_LIB) $(LDDBGLIBDIR) $(LDDBG_LIB) \
 110                     $(ELFLIBDIR) -lelf $(DLLIB) -lc
 111 
 112 DYNFLAGS +=     $(VERSREF) $(CC_USE_PROTO) '-R$$ORIGIN'
 113 
 114 native:=        DYNFLAGS        += $(CONVLIBDIR)
 115