OSDN Git Service

Rename UNUSED to UNUSED_ATTR in OSI due to symbol collision.
authorSharvil Nanavati <sharvil@google.com>
Tue, 3 Jun 2014 07:16:07 +0000 (00:16 -0700)
committerPrerepa Viswanadham <dham@google.com>
Thu, 12 Jun 2014 01:59:46 +0000 (18:59 -0700)
Change-Id: Ib26dbae713b3096adf2496f0ff0fcb607693b163

osi/include/osi.h
osi/src/list.c

index 3ca81a6..2b79527 100644 (file)
@@ -3,5 +3,5 @@
 #include <stdbool.h>
 #include <stdint.h>
 
-#define UNUSED __attribute__((unused))
+#define UNUSED_ATTR __attribute__((unused))
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
index 5d84ef6..caffa8c 100644 (file)
@@ -185,7 +185,7 @@ const list_node_t *list_begin(const list_t *list) {
 // this function returns the value of an invalid iterator for the given list.
 // When an iterator has the same value as what's returned by this function, you
 // may no longer call |list_next| with the iterator. |list| may not be NULL.
-const list_node_t *list_end(UNUSED const list_t *list) {
+const list_node_t *list_end(UNUSED_ATTR const list_t *list) {
   assert(list != NULL);
   return NULL;
 }