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

c-xcodeml.c triggers compilation error when passing NULL as va_list #170

Open
alexeedm opened this issue Mar 10, 2021 · 0 comments
Open

Comments

@alexeedm
Copy link

When trying to compile the code on Arm, I'm getting the following errors:

"c-xcodeml.c", line 254: error: argument of type "void *" is incompatible with parameter of type "va_list"
          voutxTag(fp, indent, expr, tag, xattrFlag, attrFmt, NULL);
                                                              ^

"c-xcodeml.c", line 287: error: argument of type "void *" is incompatible with parameter of type "va_list"
              attrFmt, NULL);
                       ^

"c-xcodeml.c", line 306: error: argument of type "void *" is incompatible with parameter of type "va_list"
              attrFmt, NULL);
                       ^

By C standard va_list is not necessarily a pointer, so the cast is invalid.
Similar errors happen in the F-output-xcodeml.c file. I'll try to make a pull request with the fixes

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