File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,13 @@ $(OBJDIR)/empty-array.o: CFLAGS_EXTRA=-Wno-zero-length-array
9696$(OBJDIR ) /assert.o : CFLAGS_EXTRA=-Wno-unused-parameter
9797$(OBJDIR ) /my-assert.o : CFLAGS_EXTRA=-Wno-unused-parameter
9898$(OBJDIR ) /argv-for.o : CFLAGS_EXTRA=-Wno-format-pedantic
99+ ifeq ($(CC ) , gcc)
99100$(OBJDIR ) /buf-overflow.o : CFLAGS_EXTRA=-Wno-builtin-memcpy-chk-size \
100101 -Wno-sizeof-pointer-memaccess -Wno-stringop-overflow
102+ else
103+ $(OBJDIR ) /buf-overflow.o : CFLAGS_EXTRA=-Wno-builtin-memcpy-chk-size \
104+ -Wno-sizeof-pointer-memaccess
105+ endif
101106$(OBJDIR ) /derived-types.o : CFLAGS_EXTRA=-Wno-incompatible-pointer-types
102107$(OBJDIR ) /ptr_plus_plus.o : CFLAGS_EXTRA=-Wno-format-pedantic \
103108 -Wno-unused-value -Wno-format
You can’t perform that action at this time.
0 commit comments