Skip to content
Commit d7f69fcc authored by Stephanos Ioannidis's avatar Stephanos Ioannidis Committed by Stephanos Ioannidis
Browse files

samples: chre: Correct main() function prototype



C++ standard requires C++ main() to have the return type of 'int'.

This commit updates the CHRE sample to define main() as
`int main(void)` and enable  `CONFIG_CPP_MAIN`, which instructs the
Zephyr kernel to call the C++ main().

Signed-off-by: default avatarStephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
parent cb43c900
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment