Print this page
8516 Suppress gcc errors with -Wno- in Makefile for usr/src/cmd

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/configd/Makefile
          +++ new/usr/src/cmd/svc/configd/Makefile
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25   25  # Copyright 2015 RackTop Systems.
       26 +# Copyright 2017 Gary Mills
  26   27  #
  27   28  
  28   29  MYPROG = svc.configd
  29   30  MYOBJS = \
  30   31          backend.o \
  31   32          configd.o \
  32   33          client.o \
  33   34          file_object.o \
  34   35          maindoor.o \
  35   36          object.o \
↓ open down ↓ 52 lines elided ↑ open up ↑
  88   89  FILEMODE = 0555
  89   90  
  90   91  OBJSQLITE =
  91   92  LIBSQLITE = -lsqlite-sys
  92   93  $(NATIVE_BUILD)OBJSQLITE = $(ROOT)/lib/libsqlite-native.o
  93   94  $(NATIVE_BUILD)LIBSQLITE =
  94   95  
  95   96  OBJS += $(OBJSQLITE)
  96   97  LDLIBS += $(LIBSQLITE)
  97   98  
       99 +# Suppress error for: event_id
      100 +rc_node-native.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable
      101 +
  98  102  install := TARGET = install
  99  103  clobber := TARGET = clobber
 100  104  
 101  105  .KEEP_STATE:
 102  106  .PARALLEL: $(MYOBJS) $(MYOBJS:%.o=%-native.o)
 103  107  
 104  108  all: $(PROG)
 105  109  
 106  110  native: FRC
 107  111          @cd $(LIBUUTIL)/native; pwd; $(MAKE) $(MFLAGS) install
↓ open down ↓ 27 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX