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

function without a prototype cannot be used or declared in a checked scope #475

Open
Arslan8 opened this issue Sep 29, 2021 · 0 comments
Open

Comments

@Arslan8
Copy link

Arslan8 commented Sep 29, 2021

Hi,
I am trying to compile a function using checkedC, however, i keep getting the missing prototype error.

/home/arslan/zephyrproject/zephyr/samples/hello_world/src/main.c:13:1: error: function without a prototype cannot be used or declared in a checked scope
static void getCommand();
^
/home/arslan/zephyrproject/zephyr/samples/hello_world/src/main.c:15:1: error: function without a prototype cannot be used or declared in a checked scope
static void getCommand() {
^

On some digging, adding a void parameter to the function argument fixed the problem. I am wondering if the error message is accurate here, or am i missing something?

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

No branches or pull requests

1 participant