emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51484: closed ([PATCH] Move runtime check for recent giflib to compi


From: GNU bug Tracking System
Subject: bug#51484: closed ([PATCH] Move runtime check for recent giflib to compile time)
Date: Fri, 29 Oct 2021 18:16:02 +0000

Your message dated Fri, 29 Oct 2021 11:15:04 -0700
with message-id 
<CADwFkmn5-LeKdNPRCTde_N0KbOo=uLv+09G1dn-tKjDf1CzABQ@mail.gmail.com>
and subject line Re: bug#51484: [PATCH] Move runtime check for recent giflib to 
compile time
has caused the debbugs.gnu.org bug report #51484,
regarding [PATCH] Move runtime check for recent giflib to compile time
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
51484: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51484
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] Move runtime check for recent giflib to compile time Date: Fri, 29 Oct 2021 07:42:56 -0700
Severity: wishlist

I'm looking into some bugs in how we handle gifs, and I see that we
check for GIFLIB_MAJOR at runtime.  Is there any reason not to do it at
compile-time as in the attached patch?

I expect that GCC is smart enough to see that "5 < 4" is always false
and optimize this all away, and probably also won't include unused
static variables, so maybe this doesn't matter.  But I think it's nice
to be a bit more explicit, and I guess it can't hurt to see warnings if
anyone tries using interlace_start and interlace_increment outside of
their intended use.



--- End Message ---
--- Begin Message --- Subject: Re: bug#51484: [PATCH] Move runtime check for recent giflib to compile time Date: Fri, 29 Oct 2021 11:15:04 -0700
Eli Zaretskii <eliz@gnu.org> writes:

> I generally prefer to avoid #ifdef's, so I think the change you
> propose is not for the better.  We have similar code elsewhere in
> Emacs, and there's nothing wrong with it.

OK, thanks for taking a look.  I appreciate you taking the time to
explain your thinking as well, it is most helpful.

I'm closing this bug report.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]