diff --git a/fast/driver/driver.c b/fast/driver/driver.c index d95c93118..4aa76fb6f 100644 --- a/fast/driver/driver.c +++ b/fast/driver/driver.c @@ -134,12 +134,8 @@ lang_opt(str) case '-': /* debug options */ case 'w': /* disable warnings */ if (str[2]) { - char buf[3]; - - buf[2] = '\0'; - buf[0] = '-'; - buf[1] = str[2]; - append(&COMP_FLAGS, buf); + str[1] = '-'; + append(&COMP_FLAGS, &str[1]); } else append(&COMP_FLAGS, "-a"); return 1; @@ -246,14 +242,14 @@ main(argc, argv) strcpy(COMP,comp_name()); #ifdef vax4 - append(CPP_FLAGS, "-D__vax"); + append(&CPP_FLAGS, "-D__vax"); #endif #ifdef sun3 - append(CPP_FLAGS, "-D__sun"); + append(&CPP_FLAGS, "-D__sun"); #endif #ifdef m68020 - append(CPP_FLAGS, "-D__mc68020"); - append(CPP_FLAGS, "-D__mc68000"); + append(&CPP_FLAGS, "-D__mc68020"); + append(&CPP_FLAGS, "-D__mc68000"); #endif if (signal(SIGHUP, SIG_IGN) != SIG_IGN) diff --git a/fast/driver/proto.make b/fast/driver/proto.make index ff7e475ca..1a0c0339b 100644 --- a/fast/driver/proto.make +++ b/fast/driver/proto.make @@ -33,6 +33,9 @@ opr: clean: rm -f *,$(SUF) afcc afm2 afpc Out +lint: + $(LINT) $(LINTFLAGS) -DFCC $(SRC_DIR)/driver.c + afcc.$(SUF): $(SRC_DIR)/driver.c $(TARGET_HOME)/config/em_path.h $(CC) $(CFLAGS) -c -DFCC -D$(MACH) -D`ack_sys` $(SRC_DIR)/driver.c mv driver.$(SUF) afcc.$(SUF)