all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* serious compiler warnings in mingw64 build of master
@ 2021-08-14 17:18 Stephen Leake
  2021-08-14 17:42 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Leake @ 2021-08-14 17:18 UTC (permalink / raw)
  To: emacs-devel

I just updated emacs/master (to
bf55b5ac17cd5a40ad5ff2e25af7e050602180bb), and it's giving these
compiler warnings:

   CC       process.o
In file included from process.c:33:
process.c: In function 'Fmake_process':
lisp.h:1561:31: warning: null pointer dereference [-Wnull-dereference]
 1561 |   return XSTRING (string)->u.s.data;
      |          ~~~~~~~~~~~~~~~~~~~~~^~~~~

This is from line 1990 in process.c:
	  new_argv[i] = SSDATA (XCAR (tem));

I have not tried to figure out a fix.


   CC       w32.o
w32.c: In function '_sys_read_ahead':
w32.c:8858:10: warning: 'rc' may be used uninitialized in this function [-Wmaybe-uninitialized]
 8858 |   if (rc == sizeof (char))
      |       ~~~^~~~~~~~~~~~~~~~

The preceding if/elsif block has no final 'else', so rc may not be set.
I'm not clear if the right fix is to init rc to 0, or to add an 'else'
that does something like report an error.


I've been getting mysterious crashes when mail spawns a process to get
more mail, so I'm hoping these are the root cause of that.

-- 
-- Stephe



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

end of thread, other threads:[~2021-08-14 17:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-14 17:18 serious compiler warnings in mingw64 build of master Stephen Leake
2021-08-14 17:42 ` Eli Zaretskii

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.