thisisnic opened a new issue, #50487:
URL: https://github.com/apache/arrow/issues/50487

   The ARROW_SUPPRESS_DEPRECATION_WARNING macro for GCC has a trailing 
semicolon after the first _Pragma directive:
   
   
https://github.com/apache/arrow/blob/83c185bbfcd713f8be81ae6ee47a8d74ed6dfc5e/cpp/src/arrow/util/macros.h#L159-L161
   
   Since _Pragma is a complete directive, the semicolon becomes an empty 
statement, triggering -Wpedantic warnings wherever the macro is used (e.g. 
api_vector.h:134):
   
       /arrow/util/macros.h:160:35: warning: extra ';' [-Wpedantic]
   
   The same issue exists on the clang branch (line 155).
   
   Removing the trailing semicolons from the _Pragma lines in the macro 
definition would fix it.
   
   Authored by Claude, reviewed by thisisnic


-- 
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