[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ‘surrogates_to_codepoint’ warnings
From: |
Richard Copley |
Subject: |
Re: ‘surrogates_to_codepoint’ warnings |
Date: |
Mon, 15 Jan 2018 19:20:41 +0000 |
On 15 January 2018 at 12:16, Eli Zaretskii <address@hidden> wrote:
>> Date: Mon, 15 Jan 2018 10:39:59 +0100
>> From: martin rudalics <address@hidden>
>>
>> Building master currently gets me lots of
>>
>> ../../src/coding.h:680:1: warning: no previous prototype for
>> ‘surrogates_to_codepoint’ [-Wmissing-prototypes]
>>
>> Ignore them?
>
> No, never.
:)
> Should be fixed now.
Below are the C warnings I currently get when building the master
branch, on MSYS2. I've included the warnings from indent.c below
because their text is quite different. I don't know whether they're
any more useful than their previously-discussed emacs-26 counterparts.
The emacs-26 branch built cleanly last time I checked, except for the
warnings in indent.c discussed here:
<https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00149.html>
CC indent.o
In file included from indent.c:31:0:
indent.c: In function 'scan_for_column':
disptab.h:43:7: warning: potential null pointer dereference [-Wnull-dereference]
? (NILP ((dp)->ascii) \
^~~~~~~~~~~~~~~~~~
indent.c:297:40: note: in expansion of macro 'DISP_CHAR_VECTOR'
width = sanitize_char_width (ASIZE (DISP_CHAR_VECTOR (dp, ch))); \
^~~~~~~~~~~~~~~~
indent.c:516:8: note: in expansion of macro 'MULTIBYTE_BYTES_WIDTH'
MULTIBYTE_BYTES_WIDTH (p, buffer_display_table (), b, wd);
^~~~~~~~~~~~~~~~~~~~~
disptab.h:43:7: warning: potential null pointer dereference [-Wnull-dereference]
? (NILP ((dp)->ascii) \
^~~~~~~~~~~~~~~~~~
indent.c:297:40: note: in expansion of macro 'DISP_CHAR_VECTOR'
width = sanitize_char_width (ASIZE (DISP_CHAR_VECTOR (dp, ch))); \
^~~~~~~~~~~~~~~~
indent.c:516:8: note: in expansion of macro 'MULTIBYTE_BYTES_WIDTH'
MULTIBYTE_BYTES_WIDTH (p, buffer_display_table (), b, wd);
^~~~~~~~~~~~~~~~~~~~~
disptab.h:43:7: warning: potential null pointer dereference [-Wnull-dereference]
? (NILP ((dp)->ascii) \
^~~~~~~~~~~~~~~~~~
indent.c:297:40: note: in expansion of macro 'DISP_CHAR_VECTOR'
width = sanitize_char_width (ASIZE (DISP_CHAR_VECTOR (dp, ch))); \
^~~~~~~~~~~~~~~~
indent.c:516:8: note: in expansion of macro 'MULTIBYTE_BYTES_WIDTH'
MULTIBYTE_BYTES_WIDTH (p, buffer_display_table (), b, wd);
^~~~~~~~~~~~~~~~~~~~~
disptab.h:43:7: warning: potential null pointer dereference [-Wnull-dereference]
? (NILP ((dp)->ascii) \
^~~~~~~~~~~~~~~~~~
indent.c:297:40: note: in expansion of macro 'DISP_CHAR_VECTOR'
width = sanitize_char_width (ASIZE (DISP_CHAR_VECTOR (dp, ch))); \
^~~~~~~~~~~~~~~~
indent.c:516:8: note: in expansion of macro 'MULTIBYTE_BYTES_WIDTH'
MULTIBYTE_BYTES_WIDTH (p, buffer_display_table (), b, wd);
^~~~~~~~~~~~~~~~~~~~~
CC intervals.o
intervals.c: In function 'offset_intervals':
intervals.c:878:20: warning: potential null pointer dereference
[-Wnull-dereference]
if (position == i->position || eobp)
~^~~~~~~~~~
make[1]: Leaving directory '/c/projects/emacs/src'
make[1]: Entering directory '/c/projects/emacs/src'
CC process.o
process.c: In function 'connect_network_socket':
process.c:208:10: warning: 'family' may be used uninitialized in this
function [-Wmaybe-uninitialized]
return close_on_exec (socket (domain, type, protocol));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
process.c:3320:7: note: 'family' was declared here
int family;
^~~~~~
- ‘surrogates_to_codepoint’ warnings, martin rudalics, 2018/01/15
- Re: ‘surrogates_to_codepoint’ warnings, Eli Zaretskii, 2018/01/15
- Re: ‘surrogates_to_codepoint’ warnings,
Richard Copley <=
- Re: ‘surrogates_to_codepoint’ warnings, Paul Eggert, 2018/01/15
- Re: ‘surrogates_to_codepoint’ warnings, Richard Copley, 2018/01/15
- Re: ‘surrogates_to_codepoint’ warnings, Paul Eggert, 2018/01/15
- Re: ‘surrogates_to_codepoint’ warnings, Richard Copley, 2018/01/15
- Re: ‘surrogates_to_codepoint’ warnings, Eli Zaretskii, 2018/01/15
Re: ‘surrogates_to_codepoint’ warnings, martin rudalics, 2018/01/16