Skip to content

Commit

Permalink
audio/libsrc: fix build warning
Browse files Browse the repository at this point in the history
libsamplerate/src/samplerate.c:468:5: warning: "CPU_CLIPS_POSITIVE" is not defined, evaluates to 0 [-Wundef]
  468 | #if CPU_CLIPS_POSITIVE == 0
      |     ^~~~~~~~~~~~~~~~~~

Signed-off-by: shizhenghui <[email protected]>
  • Loading branch information
shizhenghui committed Mar 25, 2024
1 parent 7b19f7c commit b5845b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/libc/audio/libsrc/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ CFLAGS += -DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\"

CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)include$(DELIM)nuttx$(DELIM)audio

CFLAGS += -DCPU_CLIPS_NEGATIVE=0
CFLAGS += -DCPU_CLIPS_NEGATIVE=0 -DCPU_CLIPS_POSITIVE=0

ifeq ($(CONFIG_SINC_FAST_CONVERTER),y)
CFLAGS += -DENABLE_SINC_FAST_CONVERTER
Expand Down

0 comments on commit b5845b0

Please sign in to comment.