From 91f6eedb24f83de02e412e9d409e6f3d89f1a6ac Mon Sep 17 00:00:00 2001
From: Deomid Ryabkov <rojer@cesanta.com>
Date: Fri, 29 Apr 2016 18:09:18 -0400
Subject: [PATCH] Remove the definition of UNUSED

It's barely used in our code and conflicts with ont in SimpleLink SDK

PUBLISHED_FROM=ef0fc468d32c9a8e0df888c2de084c08ebe92ea7
---
 examples/CC3200/Makefile.build | 1 -
 mongoose.h                     | 2 --
 2 files changed, 3 deletions(-)

diff --git a/examples/CC3200/Makefile.build b/examples/CC3200/Makefile.build
index fce74d810..6b752cc35 100644
--- a/examples/CC3200/Makefile.build
+++ b/examples/CC3200/Makefile.build
@@ -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
diff --git a/mongoose.h b/mongoose.h
index 0373f17ac..75a763a21 100644
--- a/mongoose.h
+++ b/mongoose.h
@@ -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__ */
-- 
GitLab