all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: larsi@gnus.org, dmantipov@yandex.ru, emacs-devel@gnu.org
Subject: Re: --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code
Date: Sat, 27 Dec 2014 10:08:43 +0200	[thread overview]
Message-ID: <83sig1ldkk.fsf@gnu.org> (raw)
In-Reply-To: <549D9D03.6030404@cs.ucla.edu>

> Date: Fri, 26 Dec 2014 09:38:11 -0800
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: dmantipov@yandex.ru, emacs-devel@gnu.org, larsi@gnus.org
> 
> Eli Zaretskii wrote:
> > All of the optional libraries use this
> > method, so making GnuTLS an exception is bad for maintenance.
> 
> Then let's change the method everywhere; that avoids the exception.
> The idea is to better decouple the generic code from
> WINDOWSNT-specific DLL issues.  Revised patches attached.

Thanks, the first patch is fine with me, with two gotchas:

> +# define inflateInit2(strm, windowBits) \
> +        inflateInit2_ (strm, windowBits, ZLIB_VERSION, sizeof (z_stream))

This will trigger a redifinition warning from the compiler, since
zlib.h already includes such a #define.

> +static bool
> +load_dll_functions (void)
> +{
> +  LOAD_DLL_FN (library, htmlReadMemory);
> +  LOAD_DLL_FN (library, xmlReadMemory);
> +  LOAD_DLL_FN (library, xmlDocGetRootElement);
> +  LOAD_DLL_FN (library, xmlFreeDoc);
> +  LOAD_DLL_FN (library, xmlCleanupParser);
> +  LOAD_DLL_FN (library, xmlCheckVersion);
> +  return true;
> +}

This won't compile, since 'library' is not defined (it needs to be
passed as an argument).



  reply	other threads:[~2014-12-27  8:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-12  8:38 --enable-gcc-warnings is broken on Fedora 21 by GnuTLS code Dmitry Antipov
2014-12-12  9:07 ` Eli Zaretskii
2014-12-12  9:26   ` Paul Eggert
2014-12-23 10:52   ` Dmitry Antipov
2014-12-23 18:28     ` Eli Zaretskii
2014-12-23 21:26     ` Paul Eggert
2014-12-24  7:07       ` Dmitry Antipov
2014-12-26  0:19         ` Paul Eggert
2014-12-26  0:25           ` Lars Ingebrigtsen
2014-12-26  8:23           ` Eli Zaretskii
2014-12-26 17:38             ` Paul Eggert
2014-12-27  8:08               ` Eli Zaretskii [this message]
2014-12-28  8:38                 ` Paul Eggert
2014-12-28 15:20                   ` Eli Zaretskii
2014-12-12  9:09 ` Paul Eggert
2014-12-12  9:30   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83sig1ldkk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dmantipov@yandex.ru \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.