🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6128

Re: Why is this possible?

#6128
From: Hardy Griech
Date: Thu, 05 Dec 1996 00:00
24 lines
1317 bytes
On Thu, 05 Dec 1996 09:28:36 +0100, luckas@igd.fhg.de (Volker Luckas) wrote:
> Hello all,
> 
> it was very astonishing for me to recognize that the following piece of
> source code is accepted by gcc 2.7.2 (Solaris 2.5) without giving a
> warning if gcc is called in the following way: 
  :

Just use the -Wall option and you will get the following output:

[C:\tmp]gcc -Wall -o test.exe test.c
test.c: In function `main':
test.c:8: warning: implicit declaration of function `sprintf'
test.c:8: warning: use of `l' length character with `f' type character
test.c:10: warning: implicit declaration of function `printf'

[C:\tmp]gcc -v
gcc version 2.7.2.1

This all happened on OS/2 with emx09c.

-- 
Hardy Griech, Kurt-Schumacher-Str. 25/1, D-72762 Reutlingen
Technical Details
Message-ID: <U/0pycun87sE092yn@ibm.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <32A687B4.430F@igd.fhg.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,8c9ed5628eb65d44
X-Google-Attributes: gid113d02,public
From: rgriech@ibm.net (Hardy Griech)
Subject: Re: Why is this possible?
Date: 1996/12/05
Message-ID: <U/0pycun87sE092yn@ibm.net>
X-Deja-AN: 202575399
sender: bug-gcc-request@prep.ai.mit.edu
references: <32A687B4.430F@igd.fhg.de>
content-type: text/plain; charset=ISO-8859-1
x-gateway: relay2.UU.NET from bug-gcc to gnu.gcc.bug; Thu, 5 Dec 1996 17:49:45 EST
mime-version: 1.0
newsgroups: gnu.gcc.bug