[Poppler-bugs] [Bug 103050] Fix warnings and cleanup unused defs
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Oct 20 15:39:21 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=103050
--- Comment #61 from Albert Astals Cid <aacid at kde.org> ---
(In reply to Adrian Johnson from comment #55)
> (In reply to Albert Astals Cid from comment #31)
> > > Fix some -Wundef warnings
> >
> > I'm actually kind of scared of this patch, we kind of know "it works" as of
> > now, and changing this is kind of fragile, but ok i guess
>
> I don't want to commit anything your not entirely happy with. What
> specifically concerns you about the patch? It just changes #if ... to #if
> defined() or #ifdef for the feature macros. It is less fragile than the
> existing code where someone could make a typo eg
> #if ENABLED_LIBZ /* should be ENABLED_ZLIB */
>
> and the code will compile without warnings.
Before a
#define Foo 0
would go in one way of the branch and now would go on the other, but since the
build system doens't really create any define to 0 i guess we're fine
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20171020/e8fc701e/attachment-0001.html>
More information about the Poppler-bugs
mailing list