Skip to content
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

Fixes compiler detection with Wundef #934

Merged

Conversation

RafaelLaya
Copy link
Contributor

When Wundef is passed to GCC, the preprocessor will complain that __AVR__ is not defined and thus it has to default it to zero. A simple fix is to check if it's defined and use short-circuiting logic to then check the value

Copy link

Review changes with SemanticDiff.

@jwellbelove jwellbelove changed the base branch from master to development July 28, 2024 15:44
@jwellbelove jwellbelove merged commit 02981a5 into ETLCPP:development Jul 28, 2024
63 checks passed
@RafaelLaya RafaelLaya deleted the Fix_compiler_detection_with_Wundef branch July 28, 2024 16:16
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.

3 participants