Article View: comp.os.msdos.programmer
Article #185Re: Weird BC++ 3.1 warnings
From: Patrick Taylor
Date: Sun, 02 Aug 1992 22:45
Date: Sun, 02 Aug 1992 22:45
49 lines
2500 bytes
2500 bytes
In article <BrI2sx.HAz@news.cso.uiuc.edu> ygg6647@uxa.cso.uiuc.edu (Youren Guo) writes:
>Newsgroups: comp.os.msdos.programmer
>Path: exucom.exu.ericsson.se!ericom!sunic!mcsun!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!ygg6647
>From: ygg6647@uxa.cso.uiuc.edu (Youren Guo)
>Subject: Weird BC++ 3.1 warnings
>Message-ID: <BrI2sx.HAz@news.cso.uiuc.edu>
>Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
>Organization: University of Illinois at Urbana
>Date: Thu, 16 Jul 1992 21:10:06 GMT
>Keywords: BC++
>Lines: 30
>When I use BC++ 3.1 to compile some of my programs which were compiled with
>BC++ 3.0 without any warning meesages, I got a lot of weird messages of
>the same type "Call to function 'xxx' with no prototypes". I did include
>all the function prototypes. If you doubt it, try to compile the following
>test program. I understand you can disable this warning message, but it's
>so annoying. Any ideas what's wrog here? Thanks!
>--Youren Guo
>--------------------------------------------------------------------------
>#include <stdio.h>
>int ok();
^^^^^^^^^^^^^^^^^
This is not a proper prototype. Try:
int ok(void);
>int main ()
>{
> if ( ok() ) /* ==> Warning: Call to function 'ok' with no prototype */
> printf ("******\n");
> return 0;
>}
>int ok()
>{
> return 1;
>}
>-----------------------------------------------------------------------------
>--
>Youren Guo University of Illinois at Urbana-Champaign
>y-guo@uiuc.edu
"This must be Thursday. I never could get the hang of Thursdays" - D Adams
- Patrick Taylor
Ericsson Network Systems exuptr@exu.ericsson.se "Don't let the .se fool you" alternately, exuptr@ZGNews.Lonestar.Org
Technical Details
Message-ID:
<exuptr.115.712795528@exu.ericsson.se>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ericom!exucom.exu.ericsson.se!newsReferences:
<BrI2sx.HAz@news.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ericom!exucom.exu.ericsson.se!news From: exuptr@exu.ericsson.se (Patrick Taylor) Subject: Re: Weird BC++ 3.1 warnings Message-ID: <exuptr.115.712795528@exu.ericsson.se> Keywords: BC++ Sender: news@exu.ericsson.se Nntp-Posting-Host: exupc31.exu.ericsson.se Organization: Ericsson Network Systems, Inc. References: <BrI2sx.HAz@news.cso.uiuc.edu> Date: Sun, 2 Aug 1992 22:45:28 GMT Lines: 49