fix: define prefs_changes_print outside of prefs_changes#2090
fix: define prefs_changes_print outside of prefs_changes#2090jubalh merged 1 commit intoprofanity-im:masterfrom
prefs_changes_print outside of prefs_changes#2090Conversation
Where can I see the exact build failure? |
|
In the linked workflow To be more specific: |
|
Thank you! We could change it since it's not a big deal. But I'm also not 100% agreeing on it. Clang here complains that nested functions are not part of ISO C. We don't follow ISO C.
Shouldn't Clang respect that and not complain? |
|
Looks like not https://clang.llvm.org/docs/UsersManual.html#intentionally-unsupported-gcc-extensions : CC: @sjaeckel |
This is a useful feature which is infrequently used, since clang doesn't have support for it. I'd love to say: FU clang! Don't try to turn the reality around and justify not implementing a useful feature because it doesn't have usage, if you're the reason it doesn't get used. But since it a) this isn't my project and b) I'm also somewhat concerned about compatibility to other compilers: let's remove it to make Clang happy and add to the statistics "but it's not used, so nobody cares if it's implemented". |
sjaeckel
left a comment
There was a problem hiding this comment.
LGTM after my minor comment is addressed.
This causes build failures on macOS runners in Homebrew, see: Homebrew/homebrew-core#268970 https://github.com/Homebrew/homebrew-core/actions/runs/22305120219/job/64538952484?pr=268970 I didn't run `make format` because it modified other unrelated files (guess they were not formatted before) but I assume this PR follow the style guides Signed-off-by: botantony <antonsm21@gmail.com>
c512cd5 to
309c0a6
Compare
This was done in 2016 by a contributor to fix the build under osx: 4ca6296. If this isn't needed (anymore) we are happy to remove it :) |
|
I think this is okay to keep this for Clang users, but the check should depend on the compiler, not the OS |
|
Thanks for your contribution @botantony ! |
For meson done in: 2b650c8 |
This causes build failures on macOS runners in Homebrew, see: Homebrew/homebrew-core#268970 https://github.com/Homebrew/homebrew-core/actions/runs/22305120219/job/64538952484?pr=268970
I didn't run
make formatbecause it modified other unrelated files (guess they were not formatted before) but I assume this PR follow the style guides