-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
-wpedantic reports erroneous warning for parameters in EM_ASM_ blocks #7113
Comments
This is probably a side effect of how EM_ASM works - the C compiler does see that code. To avoid that, we'd need to do preprocessing ourselves before clang, which is trickier. But maybe there's another solution I'm missing. |
I'm not sure of the moving parts, but maybe the $0 variable can be mangled as it is written out? Regardless, using the |
Yeah, but mangling the $0 would need to be done before clang sees it - which would be a big change, I'm afraid. Another option is to not use |
Suppose it would cause other problems with emcc supported both |
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant. |
Compiling the following code should work without warning. Even in
pedantic
mode.However, emcc reports the following warning:
The text was updated successfully, but these errors were encountered: