mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-28 05:39:00 +08:00
Remove the definition of UNUSED
It's barely used in our code and conflicts with ont in SimpleLink SDK PUBLISHED_FROM=ef0fc468d32c9a8e0df888c2de084c08ebe92ea7
This commit is contained in:
parent
dae150a3a5
commit
91f6eedb24
@ -104,4 +104,3 @@ ENTRY_$(PROG) = ResetISR
|
||||
|
||||
SDK_OBJS = $(addprefix $(OBJDIR)/,$(patsubst %.c,%.o,$(SDK_SRCS)))
|
||||
$(SDK_OBJS): CFLAGS += -include mongoose.h -Wno-missing-braces -Wno-strict-aliasing -Wno-parentheses -Wno-unused-variable
|
||||
$(BUILD_DIR)/cc_pal.o: CFLAGS += -Wno-error
|
||||
|
@ -102,12 +102,10 @@
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define NORETURN __attribute__((noreturn))
|
||||
#define UNUSED __attribute__((unused))
|
||||
#define NOINLINE __attribute__((noinline))
|
||||
#define WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
#else
|
||||
#define NORETURN
|
||||
#define UNUSED
|
||||
#define NOINLINE
|
||||
#define WARN_UNUSED_RESULT
|
||||
#endif /* __GNUC__ */
|
||||
|
Loading…
Reference in New Issue
Block a user