Skip to content

Change define "ARDUINO_T-Watch" to "ARDUINO_T_Watch" prevent "warning: ISO C99 requires whitespace after the macro name" #378

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

Closed
wants to merge 1 commit into from

Conversation

sweetlilmre
Copy link

Change define "ARDUINO_T-Watch" to "ARDUINO_T_Watch" prevent "warning: ISO C99 requires whitespace after the macro name"

Change define "ARDUINO_T-Watch" to "ARDUINO_T_Watch" prevent "warning: ISO C99 requires whitespace after the macro name"
@sweetlilmre
Copy link
Author

Any chance of this pull request getting some attention? It's a very small fix with little to zero impact and cuts down compiler noise significantly.

@valeros
Copy link
Member

valeros commented Aug 14, 2020

Hi @sweetlilmre ! Sorry for the late reply. How is this board defined in Arduino IDE? You can always suppress any unwanted flags using build_unflags option.

@sweetlilmre
Copy link
Author

Hi @valeros

As far as I can see this definition is platformio specific and not necessarily an unwanted flag. The other TTGO examples have underscores as opposed to dashes in the extra_flags definitions (preventing this warning) and the definition is useful for gating watch specific functionality, although currently unused.
I'm assuming this was just a typo in the original submission?

@valeros
Copy link
Member

valeros commented Aug 17, 2020

I checked this board in Arduino IDE and the definition is the same -DARDUINO_T-Watch. We tend to use the same board configuration just to make sure users won't bump into any problems caused by different definitions.

@sweetlilmre
Copy link
Author

Hi @valeros

I've opened a pull request against the espressif repo to change the ttgo-t-watch.build.board=T-Watch definition.
Let's see if we can get it fixed there first.

@sweetlilmre
Copy link
Author

espressif has fixed this issue by changing the definition to "TWatch" in this commit: espressif/arduino-esp32@6f237a8#diff-fce09ad94aad2ba67472cd9142f00146

@valeros how would you like to proceed? should I close this and resubmit a patch or will you fix it on your side for consistency?

@valeros
Copy link
Member

valeros commented Oct 5, 2020

Thanks for the reminder, the define will be fixed as soon as the Espressif team publishes a new release.

@valeros valeros closed this in ddab9bb Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants