ANDROID: ignore compiler tag __must_check for GENKSYMS
GENKSYMS shouldn't care about the __must_check compiler flag. So strip it out for GENKSYMS. Signed-off-by: Will McVicker <willmcvicker@google.com> Bug: 153478475 Test: compile, check crc Change-Id: I512639a4f719037728ffbfa48e7b766510c7d726
This commit is contained in:
parent
28551438a1
commit
a4923652a4
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ struct ftrace_likely_data {
|
|||
#define __section(S) __attribute__((__section__(#S)))
|
||||
|
||||
|
||||
#ifdef CONFIG_ENABLE_MUST_CHECK
|
||||
#if defined(CONFIG_ENABLE_MUST_CHECK) && !defined(__GENKSYMS__)
|
||||
#define __must_check __attribute__((warn_unused_result))
|
||||
#else
|
||||
#define __must_check
|
||||
|
|
Loading…
Reference in a new issue