Skip to content

binaryen-c.h: this function declaration is not a prototype #1766

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

Closed
atrosinenko opened this issue Nov 25, 2018 · 2 comments
Closed

binaryen-c.h: this function declaration is not a prototype #1766

atrosinenko opened this issue Nov 25, 2018 · 2 comments

Comments

@atrosinenko
Copy link

When compiling with Binaryen on Emscripten's clang (related to #1494), I get the following warnings:

/home/trosinenko/projects/qemujs/build/emscripten_-m32_-Os_-g2/binaryen/src/binaryen-c.h:655:29: warning: this function declaration is not a prototype [-Wstrict-prototypes]
int BinaryenGetOptimizeLevel();
                            ^
                             void
/home/trosinenko/projects/qemujs/build/emscripten_-m32_-Os_-g2/binaryen/src/binaryen-c.h:663:27: warning: this function declaration is not a prototype [-Wstrict-prototypes]
int BinaryenGetShrinkLevel();
                          ^
                           void
/home/trosinenko/projects/qemujs/build/emscripten_-m32_-Os_-g2/binaryen/src/binaryen-c.h:671:25: warning: this function declaration is not a prototype [-Wstrict-prototypes]
int BinaryenGetDebugInfo();
                        ^
                         void

Not too severe, but it disturbs from more significant warnings. Sure I would fix it myself, but analyzing CLA is probably order of magnitude harder than actually fixing :)

int BinaryenGetOptimizeLevel();

@kripken
Copy link
Member

kripken commented Nov 25, 2018

Thanks @atrosinenko, fix in #1768

@atrosinenko
Copy link
Author

Thanks!

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

2 participants