-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrected an issue encountered by the default compiler on ARM.
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e7fee3e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ARM compiler doesn't let you declare ints in the for loop?
Good to know since I do that everywhere.
e7fee3e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be overcome with the appropriate flags, but by default it failed. We could add the flags to the configuration maybe, but for the time being this was a simple enough fix. Older versions of Visual Studio suffer from the same issue, actually, and I don't know what flags we'd need to set there, so this is probably better.
Error
e7fee3e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, the PIO code as written depends on a lot of C99 features. In fact, I'm happy to say that if someone doesn't have C99, they should not use PIO.
I will put that into configure, and in doing non-PIO code I'll avoid C99. I'm pretty sure I can set some gcc flags for that so my Jenkins jobs will check this for me in the future...
e7fee3e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good! As soon as the current test passes,
I'll get this group merged into
master
.