Skip to content

app: Switch main return type to 'int' - #7544

Merged
kv2019i merged 1 commit into
thesofproject:mainfrom
keith-packard:upstream-int-main
May 4, 2023
Merged

kv2019i merged 1 commit into
thesofproject:mainfrom
keith-packard:upstream-int-main

Conversation

@keith-packard

Copy link
Copy Markdown
Contributor

With Zephyr adopting a different type for 'main', adapt this application to match.

This is required when building without the -ffreestanding compiler flag as the C standard for "hosted" applications requires one of a small set of specific signatures for the main function.

With Zephyr adopting a different type for 'main', adapt this
application to match.

Signed-off-by: Keith Packard <keithp@keithp.com>
@sofci

sofci commented May 1, 2023

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

reply test this please to run this test once

@gkbldcig

gkbldcig commented May 1, 2023

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@marc-hb

marc-hb commented May 1, 2023 •

Copy link
Copy Markdown
Collaborator

test this please

EDIT: this aligns with recent Zephyr change:

Comment thread app/src/main.c Resolved
@kv2019i

kv2019i commented May 2, 2023

Copy link
Copy Markdown
Collaborator

Ready to go, pending CI results for Intel quickbuild -> @wszypelt

@kv2019i
kv2019i merged commit 3a5f7a3 into thesofproject:main May 4, 2023
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.

10 participants