lidavidm opened a new issue, #4042:
URL: https://github.com/apache/arrow-adbc/issues/4042
### What happened?
It looks like `__COUNTER__` has been promoted from a compiler extension
(that happened to be enabled by default?) to a C2y feature, and now clang is
issuing warnings for using it (because now it's an actual future feature) - not
sure how best to handle this (this is rather annoying behavior). I don't want
to enable C2y in general, maybe we silence this warning?
### Stack Trace
```
In file included from /adbc/c/driver/common/utils.c:18:
In file included from /adbc/c/driver/common/utils.h:26:
/adbc/c/vendor/nanoarrow/../nanoarrow/nanoarrow.h:2595:3: error:
'__COUNTER__' is a C2y extension [-Werror,-Wc2y-extensions]
2595 | NANOARROW_RETURN_NOT_OK(ArrowBufferReserve(buffer, size_bytes));
| ^
/adbc/c/vendor/nanoarrow/../nanoarrow/nanoarrow.h:308:69: note: expanded
from macro 'NANOARROW_RETURN_NOT_OK'
308 | _NANOARROW_RETURN_NOT_OK_IMPL(_NANOARROW_MAKE_NAME(errno_status_,
__COUNTER__), EXPR)
| ^
```
### How can we reproduce the bug?
_No response_
### Environment/Setup
_No response_
--
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]