Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

*** 20,29 **** --- 20,31 ---- # # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # + # Copyright 2019 Joyent, Inc. + # CRTI = crti.o CRTN = crtn.o CRT1 = crt1.o VALUES = values-Xa.o values-Xc.o values-Xs.o values-Xt.o \
*** 49,74 **** $(INTEL_BLD)ROOTOBJECTS64 += $(ROOTLIB64)/gcrt1.o ASFLAGS += -P -D__STDC__ -D_ASM -DPIC $(AS_PICFLAGS) values-xpg6.o := CPPFLAGS += -I$(SRC)/lib/libc/inc - values-xpg6.lint := CPPFLAGS += -I$(SRC)/lib/libc/inc $(COMMON_CRT) $(VALUES) := CFLAGS += $(C_PICFLAGS) $(COMMON_CRT) $(VALUES) := CFLAGS64 += $(C_PICFLAGS64) .KEEP_STATE: all: $(OBJECTS) clean clobber: $(RM) $(OBJECTS) - %.lint: ../common/%.c - $(LINT.c) $(LINTCHECKFLAGS) $< - lint: $(VALUES:%.o=%.lint) $(COMMON_CRT:%.o=%.lint) - $(CRT1): $(COMMON_CRT) $(MACH_CRT) $(LD) -r $(MACH_CRT) $(COMMON_CRT) -o $(CRT1) %.o: ../common/%.c $(COMPILE.c) -o $@ $< --- 51,74 ---- $(INTEL_BLD)ROOTOBJECTS64 += $(ROOTLIB64)/gcrt1.o ASFLAGS += -P -D__STDC__ -D_ASM -DPIC $(AS_PICFLAGS) values-xpg6.o := CPPFLAGS += -I$(SRC)/lib/libc/inc $(COMMON_CRT) $(VALUES) := CFLAGS += $(C_PICFLAGS) $(COMMON_CRT) $(VALUES) := CFLAGS64 += $(C_PICFLAGS64) + # intentional double exit + SMOFF += unreachable + .KEEP_STATE: all: $(OBJECTS) clean clobber: $(RM) $(OBJECTS) $(CRT1): $(COMMON_CRT) $(MACH_CRT) $(LD) -r $(MACH_CRT) $(COMMON_CRT) -o $(CRT1) %.o: ../common/%.c $(COMPILE.c) -o $@ $<