Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0c8fd13 authored by Sharvil Nanavati's avatar Sharvil Nanavati
Browse files

Rename UNUSED to UNUSED_ATTR in OSI due to symbol collision.

Change-Id: Ib26dbae713b3096adf2496f0ff0fcb607693b163
parent aeed70b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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]))
+1 −1
Original line number Diff line number Diff line
@@ -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;
}