Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
system_bt
Commits
970f914b
Commit
970f914b
authored
11 years ago
by
Sharvil Nanavati
Browse files
Options
Download
Email Patches
Plain Diff
Rename UNUSED to UNUSED_ATTR in OSI due to symbol collision.
Change-Id: Ib26dbae713b3096adf2496f0ff0fcb607693b163
parent
9546abf9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
osi/include/osi.h
osi/include/osi.h
+1
-1
osi/src/list.c
osi/src/list.c
+1
-1
No files found.
osi/include/osi.h
View file @
970f914b
...
...
@@ -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]))
This diff is collapsed.
Click to expand it.
osi/src/list.c
View file @
970f914b
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment