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

boot: main: avoid unused build warning #1990

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

sylvioalves
Copy link
Contributor

In case ESP32 SoC is used, *start will get
build warning as it is not used.

boot/zephyr/main.c Outdated Show resolved Hide resolved
@sylvioalves
Copy link
Contributor Author

@nordicjm @almir-okato PTAL.

Copy link
Collaborator

@almir-okato almir-okato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

boot/zephyr/main.c Show resolved Hide resolved
@sylvioalves
Copy link
Contributor Author

sylvioalves commented Aug 12, 2024

@nordicjm I inverted the call order instead of creating an additional #ifdef just because of a single variable. Let me know if it fits you. PTAL again.

Copy link
Collaborator

@nordicjm nordicjm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not fixed, functions are being called before variables have been defined

In case ESP32 SoC is used, *start will get
build warning as it is not used.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
@sylvioalves
Copy link
Contributor Author

@nordicjm Ok, taking your suggestion and adding #ifdef around it.

@nordicjm nordicjm merged commit 334d2c2 into mcu-tools:main Aug 21, 2024
58 checks passed
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