GNU bug report logs - #16001
[5ef95e85] fails to build with --enable-gcc-warnings in some configurations

Previous Next

Package: emacs;

Reported by: Ivan Shmakov <ivan <at> siamics.net>

Date: Fri, 29 Nov 2013 17:56:04 UTC

Severity: normal

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#16001: closed ([5ef95e85] fails to build with --enable-gcc-warnings
 in some configurations)
Date: Sat, 30 Nov 2013 13:33:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 30 Nov 2013 14:32:30 +0100
with message-id <0BB9EA99-8478-4026-ABFA-8828F793CA5B <at> swipnet.se>
and subject line Re: bug#16001: [5ef95e85] fails to build with --enable-gcc-warnings in some configurations
has caused the debbugs.gnu.org bug report #16001,
regarding [5ef95e85] fails to build with --enable-gcc-warnings in some configurations
to be marked as done.

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


-- 
16001: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16001
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ivan Shmakov <oneingray <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Ivan Shmakov <oneingray <at> gmail.com>
Subject: [5ef95e85] fails to build with --enable-gcc-warnings in some
 configurations
Date: Fri, 29 Nov 2013 17:02:24 +0000
	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


[Message part 3 (message/rfc822, inline)]
From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Ivan Shmakov <oneingray <at> gmail.com>
Cc: 16001-done <at> debbugs.gnu.org
Subject: Re: bug#16001: [5ef95e85] fails to build with --enable-gcc-warnings
 in some configurations
Date: Sat, 30 Nov 2013 14:32:30 +0100
Hello.

There are lot of new errors in window.c, xterm.c and xdisp.c after the pixelwise resize checkin, so this report is kind of obsolete.  But I checked in fixes for the issues below.

	Jan D.

29 nov 2013 kl. 18:02 skrev Ivan Shmakov <oneingray <at> gmail.com>:

> 	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
> 
> 



This bug report was last modified 11 years and 232 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.