Skip to content

Commit

Permalink
spearmint: Turn off array-bounds warnings for opus/silk/NLSF2A.c
Browse files Browse the repository at this point in the history
Turn off the false positive array-bounds warnings.
  • Loading branch information
zturtleman committed May 10, 2016
1 parent a646b01 commit a3da9be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,12 @@ $(echo_cmd) "CC $<"
$(Q)$(CC) $(NOTSHLIBCFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $<
endef

# turn off the false positive array-bounds warnings in $(OPUSDIR)/silk/NLSF2A.c
define DO_NLSF2A_CC
$(echo_cmd) "CC $<"
$(Q)$(CC) $(NOTSHLIBCFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) -Wno-array-bounds $(OPTIMIZE) -o $@ -c $<
endef

define DO_REF_CC
$(echo_cmd) "REF_CC $<"
$(Q)$(CC) $(SHLIBCFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $<
Expand Down Expand Up @@ -2041,6 +2047,9 @@ $(B)/client/opus/%.o: $(OPUSDIR)/celt/%.c
$(B)/client/opus/%.o: $(OPUSDIR)/silk/%.c
$(DO_CC)

$(B)/client/opus/NLSF2A.o: $(OPUSDIR)/silk/NLSF2A.c
$(DO_NLSF2A_CC)

$(B)/client/opus/%.o: $(OPUSDIR)/silk/float/%.c
$(DO_CC)

Expand Down

0 comments on commit a3da9be

Please sign in to comment.