From: Ivan Shmakov <oneingray@gmail.com>
To: 16001@debbugs.gnu.org
Cc: Ivan Shmakov <oneingray@gmail.com>
Subject: bug#16001: [5ef95e85] fails to build with --enable-gcc-warnings in some configurations
Date: Fri, 29 Nov 2013 17:02:24 +0000 [thread overview]
Message-ID: <87zjondtun.fsf@violet.siamics.net> (raw)
As of 5ef95e85, building with GCC 4.8.2, --enable-gcc-warnings,
--without-x-toolkit, and GnuTLS 2, fails with:
../../src/xfaces.c:914:0: error: macro "NEAR_SAME_COLOR_THRESHOLD" is not used [-Werror=unused-macros]
#define NEAR_SAME_COLOR_THRESHOLD 30000
^
cc1: all warnings being treated as errors
../../src/gnutls.c:266:1: error: 'gnutls_audit_log_function' defined but not used [-Werror=unused-function]
gnutls_audit_log_function (gnutls_session_t session, const char* string)
^
cc1: all warnings being treated as errors
The causes are:
• the NEAR_SAME_COLOR_THRESHOLD macro’s definition is not
properly guarded with #ifdef HAVE_WINDOW_SYSTEM;
• both the declaration and the definition of
gnutls_audit_log_function () are not properly guarded with
#ifdef HAVE_GNUTLS3.
Adding the respective guards fixes both of the GCC errors.
The issue seem not to be fixed in e7203144, either.
--
FSF associate member #7257
next reply other threads:[~2013-11-29 17:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-29 17:02 Ivan Shmakov [this message]
2013-11-30 13:32 ` bug#16001: [5ef95e85] fails to build with --enable-gcc-warnings in some configurations Jan Djärv
2013-11-30 16:26 ` martin rudalics
2013-11-30 18:15 ` Ivan Shmakov
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zjondtun.fsf@violet.siamics.net \
--to=oneingray@gmail.com \
--cc=16001@debbugs.gnu.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).