nb_attr.h:294:14: warning: ISO C++ forbids zero-size array [-Wpedantic] #792
Closed
kennethassogba
started this conversation in
General
Replies: 1 comment 2 replies
-
Did you read the comment some lines above? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to compile my c++ source files with
-pedantic
gcc compiler flags, but not external libs like nanobind.I do, however, get this warning:
My compilation options are set to Private. However, since nb_attr.h is included in my sources, the pedantic flag applies to it.
Ideally, I would not have to recompile nanobind, but I use it as a submodule.
Do you plan to use the same trick as for MSVC a few lines above in nb_attr.h?
Beta Was this translation helpful? Give feedback.
All reactions