I would write stuff here, but I'm annoyed about the lack of a --disable-werror flag, so I'd just end up flaming.
Created attachment 43427 [details] [review] patch for "variable is set but not used"
Created attachment 43428 [details] [review] patch for "condition is always true"
(In reply to comment #0) > I would write stuff here, but I'm annoyed about the lack of a --disable-werror > flag, so I'd just end up flaming. FYI it's called --disable-Werror here; numbered releases turn off -Werror by default, so it's normally only active for builds from git.
yeah, wjt pointed it out on irc; I was looking for it in configure.ac, figuring you'd just not pass the "werror-by-default" flag to TP_COMPILER_WARNINGS in that case...
Review of attachment 43427 [details] [review]: Thanks very much! (I had thought I'd fixed many of these a few weeks when experimenting with clang, but discovered that I'd just stashed the changes…)
Review of attachment 43428 [details] [review]: I'm instead going to fix the macros to remove this check. I've checked, and nothing that uses them ever passes NULL…
here's a fix for the tp_clear_* macros, and some more fixes for warnings produced by clang.
Fixed in master (at last, sorry for the delay). Thanks for the report and patches!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.