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


  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 #
  28 # Definitions for targets shared by some subdirs, which have
  29 # dependencies in rcap/common, the path to which must be the value of
  30 # COMMON_DIR.
  31 #
  32 
  33 LDFLAGS +=      $(MAPFILE.NGB:%=-M%)
  34 
  35 CERRWARN += -_gcc=-Wno-unused-function
  36 CERRWARN += -_gcc=-Wno-uninitialized
  37 CERRWARN += -_gcc=-Wno-parentheses
  38 
  39 SMOFF += strcpy_overflow
  40 
  41 %.o: $(COMMON_DIR)/%.c
  42         $(COMPILE.c) $<
  43 %.po: $(COMMON_DIR)/%.c
  44         $(COMPILE.cpp) $< > $<.i
  45         $(BUILD.po)


  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 #
  28 # Definitions for targets shared by some subdirs, which have
  29 # dependencies in rcap/common, the path to which must be the value of
  30 # COMMON_DIR.
  31 #
  32 
  33 LDFLAGS +=      $(MAPFILE.NGB:%=-M%)
  34 
  35 CERRWARN += -_gcc=-Wno-unused-function
  36 CERRWARN += $(CNOWARN_UNINIT)
  37 CERRWARN += -_gcc=-Wno-parentheses
  38 
  39 SMOFF += strcpy_overflow
  40 
  41 %.o: $(COMMON_DIR)/%.c
  42         $(COMPILE.c) $<
  43 %.po: $(COMMON_DIR)/%.c
  44         $(COMPILE.cpp) $< > $<.i
  45         $(BUILD.po)