-
Notifications
You must be signed in to change notification settings - Fork 200
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
Implicit function delcaration error with Apple Clang #817
Comments
this code is a bit weird. both so, despite the fact that the compiler sees this: if ((0))
dump_lens_tree(lens); it doesn't just delete the code from the AST, it tries to actually analyse it. A possibly fix would be to declare the two dump functions regardless of whether Debugging is enabled. Ideally we could declare them |
Thanks for pointing this out @igalic The function I was wondering why the compiler did not complain that the function didn't exist at all after complaining that it was an "undeclared function". I expect it is because the of the The "undeclared function" warning probably happens on a eariler pass of the compiler over the code, before it does the optimisation PR#818 puts the code inside an As an alternative, the
I'm thinking that this is closer to the existing solution applied for the function The net result is that when |
Confirming that #818 fixes the issue. |
Thanks @p-linnane for confirming this I have updated the Pull Request #818 to use The end-result is the same (the compiler warning is gone), but it "fits" better with the existing code and is slightly more readable Sorry for any inconvenience. |
Hello 👋 . I'm a maintainer for the Homebrew project. We've noticed the following error with Apple Clang when trying to compile augeas. We are currently working around this by passing
-Wno-implicit-function-declaration
, but hoping to get an upstream fix. Thanks!The text was updated successfully, but these errors were encountered: