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

Commit dd2ea5fd authored by Yi Kong's avatar Yi Kong
Browse files

Suppress -Wstring-plus-int warning

The code section is already marked as to be removed, simply suppress
the -Wstring-plus-int warning.

Test: m checkbuild
Bug: 128878287
Change-Id: I95a03aca90dbb5d27db49f5baf534cbaacf9b830
parent 588a87d6
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -413,6 +413,8 @@ int __android_log_buf_write(int bufID, int prio, const char* tag, const char* ms
  if (!tag) tag = "";
  if (!tag) tag = "";


  /* XXX: This needs to go! */
  /* XXX: This needs to go! */
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wstring-plus-int"
  if (bufID != LOG_ID_RADIO) {
  if (bufID != LOG_ID_RADIO) {
    switch (tag[0]) {
    switch (tag[0]) {
      case 'H':
      case 'H':
@@ -454,6 +456,7 @@ int __android_log_buf_write(int bufID, int prio, const char* tag, const char* ms
        break;
        break;
    }
    }
  }
  }
#pragma clang diagnostic pop


#if __BIONIC__
#if __BIONIC__
  if (prio == ANDROID_LOG_FATAL) {
  if (prio == ANDROID_LOG_FATAL) {