* 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
* bug#16001: [5ef95e85] fails to build with --enable-gcc-warnings in some configurations
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
0 siblings, 2 replies; 4+ messages in thread
From: Jan Djärv @ 2013-11-30 13:32 UTC (permalink / raw)
To: Ivan Shmakov; +Cc: 16001-done
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@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
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#16001: [5ef95e85] fails to build with --enable-gcc-warnings in some configurations
2013-11-30 13:32 ` Jan Djärv
@ 2013-11-30 16:26 ` martin rudalics
2013-11-30 18:15 ` Ivan Shmakov
1 sibling, 0 replies; 4+ messages in thread
From: martin rudalics @ 2013-11-30 16:26 UTC (permalink / raw)
To: 16001, jan.h.d, oneingray
> 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.
Juanma already fixed some of them, I tried to fix the rest. Please have a look.
Thanks, martin
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#16001: [5ef95e85] fails to build with --enable-gcc-warnings in some configurations
2013-11-30 13:32 ` Jan Djärv
2013-11-30 16:26 ` martin rudalics
@ 2013-11-30 18:15 ` Ivan Shmakov
1 sibling, 0 replies; 4+ messages in thread
From: Ivan Shmakov @ 2013-11-30 18:15 UTC (permalink / raw)
To: 16001; +Cc: Ivan Shmakov
>>>>> Jan Djärv <jan.h.d@swipnet.se> writes:
>>>>> 29 nov 2013 kl. 18:02 skrev Ivan Shmakov <oneingray@gmail.com>:
>> As of 5ef95e85, building with GCC 4.8.2, --enable-gcc-warnings,
>> --without-x-toolkit, and GnuTLS 2, fails with:
[…]
> 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.
JFTR, while I didn’t look at the current state of the code,
“pixelwise resize” seem to be something related to the Emacs
support for graphical terminals. However, the xfaces.c issue is
likely to only manifest itself when building Emacs with no such
support enabled (IOW, character cell only; which is what I did.)
The gnutls.c issue isn’t entirely dissimilar, as it’s likely to
arise only in some configurations, but not the others.
> But I checked in fixes for the issues below.
ACK, thanks.
--
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 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).