-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Change - to _ in build.board names #1341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
build.board is used to define a macro but - is not a permitted character in macro names. This causes the macro name to actually be only everything up to the first - and also many warnings when compiling for one of these boards: <command-line>:0:14: warning: ISO C++11 requires whitespace after the macro name <command-line>:0:14: warning: ISO C99 requires whitespace after the macro name I have followed the convention of the other build.board names by replacing - with _.
YES, finally! Downloaded and installed arduino-esp32 last week, and the list of compile warnings was just overwhelming! |
I think that also variant name and corresponding to variant subfolder |
@MCUdude it seems there is the intention to avoid warnings in this project because they actually use
I'm happy to do so if that's what the team wants. The current The benefit of changing The downside to the change is that it's harder to follow Git history through folder name changes. However, these variants only have one or two commits each so that's much of a problem. Certainly it's better to do it now than later. |
There is another possible downside to the variant name change I just thought of. It's possible to reference variants from another package (e.g. A Google search didn't find any packages that reference these variants so that breakage may be purely theoretical. |
it's just a suggestion... |
build.board is used to define a macro but - is not a permitted character in macro names. This causes the macro name to actually be only everything up to the first - and also many warnings when compiling for one of these boards: <command-line>:0:14: warning: ISO C++11 requires whitespace after the macro name <command-line>:0:14: warning: ISO C99 requires whitespace after the macro name I have followed the convention of the other build.board names by replacing - with _.
build.board
is used to define a macro but-
is not a permitted character in macro names. This causes the macro name to actually be only everything up to the first-
and also many warnings when compiling for one of these boards:I have followed the convention of the other
build.board
names by replacing-
with_
.Related:
#812
#1187