all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#16001: [5ef95e85] fails to build with --enable-gcc-warnings in some configurations
@ 2013-11-29 17:02 Ivan Shmakov
  2013-11-30 13:32 ` Jan Djärv
  0 siblings, 1 reply; 4+ messages in thread
From: Ivan Shmakov @ 2013-11-29 17:02 UTC (permalink / raw)
  To: 16001; +Cc: Ivan Shmakov

	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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-30 18:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-29 17:02 bug#16001: [5ef95e85] fails to build with --enable-gcc-warnings in some configurations Ivan Shmakov
2013-11-30 13:32 ` Jan Djärv
2013-11-30 16:26   ` martin rudalics
2013-11-30 18:15   ` Ivan Shmakov

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.