🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #582

Not actually bug. But inconvenience anyway

#582
From: J|rgen N|rgaard
Date: Sat, 09 Sep 1989 13:11
30 lines
1753 bytes
[
gcc version 1.34
]

Compiling with "-Wall" and "-pedantic" like
       gcc -Wall  -ansi -pedantic -g  -c xxx.c


does give warnings if you try to use return-values from void-functions.
(void yyy() {};)

But not AT ALL if you ignore a returned value, as in
(char *do_something() { ... return( some pointer ); }; )


It appears somewhat beside what you would expect from those flags. Though
the man does specifically mention that case. In any case it (to me)
seems inconsistent (either warn for both ignored return-value and trying
to use a void-value or not for any)

--                                                                           --
| Regards, J|rgen N|rgaard ('|' is '\o{}' in \LaTeX{})                        |
|    e-mail: jnp@tele.nokia.fi or pedersen%tnclus.dnet@tele.nokia.fi          |
--                telephone: <..>-358-0-511-5671                             --
--
--                                                                           --
| Regards, J|rgen N|rgaard ('|' is '\o{}' in \LaTeX{})                        |
|    e-mail: jnp@tele.nokia.fi or pedersen%tnclus.dnet@tele.nokia.fi          |
--                telephone: <..>-358-0-511-5671                             --
Technical Details
Message-ID: <JNP.89Sep9151122@mjolner.tele.nokia.fi>
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!uunet!mcsun!sunic!tut!santra!mjolner!jnp

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!uunet!mcsun!sunic!tut!santra!mjolner!jnp
From: jnp@mjolner.tele.nokia.fi (J|rgen N|rgaard)
Newsgroups: gnu.gcc.bug
Subject: Not actually bug. But inconvenience anyway
Message-ID: <JNP.89Sep9151122@mjolner.tele.nokia.fi>
Date: 9 Sep 89 13:11:22 GMT
Article-I.D.: mjolner.JNP.89Sep9151122
Sender: news@mjolner.tele.nokia.fi
Distribution: gnu
Organization: Nokia Telecommunications Oy, Espoo, Finland
Lines: 30