Undef before redefining macros
-Werror,-Wmacro-redefined was turned on because of -Werror, -Wall. Undefine the overridden macros before redefining them to let compiler know that the redifinition is intentional. Test: m -j sh_vendor Change-Id: If324124e4504f05a37afd1021cff179fdfe4c08e
This commit is contained in:
parent
7569b29092
commit
ac07b5ab5e
1 changed files with 3 additions and 0 deletions
|
@ -120,6 +120,9 @@ cc_defaults {
|
|||
vendor: {
|
||||
cflags: [
|
||||
// Additional flags for vendor variant
|
||||
"-UMKSH_DEFAULT_PROFILEDIR",
|
||||
"-UMKSHRC_PATH",
|
||||
"-UMKSH_DEFAULT_EXECSHELL",
|
||||
"-DMKSH_DEFAULT_PROFILEDIR=\"/vendor/etc\"",
|
||||
"-DMKSHRC_PATH=\"/vendor/etc/mkshrc\"",
|
||||
"-DMKSH_DEFAULT_EXECSHELL=\"/vendor/bin/sh\"",
|
||||
|
|
Loading…
Reference in a new issue