hiroyuki-sato commented on PR #46622:
URL: https://github.com/apache/arrow/pull/46622#issuecomment-2914871269

   Simplified. (or just `#if defined(__GNUC__)`)
   
   ```diff
   diff --git 
a/cpp/src/arrow/flight/sql/odbc/odbcabstraction/include/odbcabstraction/encoding.h
 
b/cpp/src/arrow/flight/sql/odbc/odbcabstraction/include/odbcabstraction/encoding.h
   index bd7ead678a..bec75d504f 100644
   --- 
a/cpp/src/arrow/flight/sql/odbc/odbcabstraction/include/odbcabstraction/encoding.h
   +++ 
b/cpp/src/arrow/flight/sql/odbc/odbcabstraction/include/odbcabstraction/encoding.h
   @@ -115,7 +115,7 @@ inline void Utf8ToWcs(const char* utf8_string, 
std::vector<uint8_t>* result) {
      return Utf8ToWcs(utf8_string, strlen(utf8_string), result);
    }
   
   -#if defined(__GNUC__) && __GNUC__ >= 11
   +#if (defined(__GNUC__) && __GNUC__ >= 11) || defined(__clang__)
    #  pragma GCC diagnostic push
    #  pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    #endif
   @@ -132,7 +132,7 @@ inline void WcsToUtf8(const void* wcs_string, size_t 
length_in_code_units,
      result->reserve(length_in_bytes);
      result->assign(data, data + length_in_bytes);
    }
   -#if defined(__GNUC__) && __GNUC__ >= 11
   +#if (defined(__GNUC__) && __GNUC__ >= 11) || defined(__clang__)
    #  pragma GCC diagnostic pop
    #endif
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to