unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* GCC/clang warning for Complex integers?
@ 2024-07-01  8:40 Gerd Möllmann
  2024-07-01 11:55 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Gerd Möllmann @ 2024-07-01  8:40 UTC (permalink / raw)
  To: Emacs Devel

Does someone know how to get a warning for using imaginary numbers like
so (typo)?

  unsigned char *data = alloc (nbytes + 1i, IGC_OBJ_STRING_DATA);

That compiles without a warning for me, and one is in for a surprise. I
can't find the compiler flag that makes that a warning or error (tried with
clang 18 and GCC 14).



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

end of thread, other threads:[~2024-07-01 14:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01  8:40 GCC/clang warning for Complex integers? Gerd Möllmann
2024-07-01 11:55 ` Eli Zaretskii
2024-07-01 12:54   ` Pip Cet
2024-07-01 13:51     ` Po Lu
2024-07-01 14:31       ` Gerd Möllmann

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