cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/08/18:25:17

From: "XtReMe" <xtreme AT x-project DOT demon DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: pointer conversion
Date: Tue, 8 Jun 1999 23:45:47 +0200
Message-ID: <928878196.5148.0.pluto.d4ee0fa5@news.demon.nl>
NNTP-Posting-Host: x-project.demon.nl
X-NNTP-Posting-Host: x-project.demon.nl:212.238.15.165
X-Trace: news.demon.nl 928878196 pluto:5148 NO-IDENT x-project.demon.nl:212.238.15.165
X-Complaints-To: abuse AT demon DOT net
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Lines: 43
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi!

Does anyone know how to turn off the warning :
    ANSI C prohibits conversion from '()' to '(...)'

It turns up when you use something like the code below this msg

It's not really a problem, but I'm having a MAJOR project here and I don't
like all the warnings. It gets messy and I can't find the real errors
between
them. I also don't want to turn off all the warnings, just this one.
Sure, I could cast all the pointers myself, but I don't want to change LOTS
and LOTS of code.
By the way, I'm using C++, and not normal ANSI C

And does anyone has a good list of all available #pragma directives
for DJGPP?

Thanx

XtReMe
xtreme AT x-project DOT demon DOT nl


Here's a representative piece of code:

void do_something (int x)
{
    printf ("x = %d\n", d);
}

void (*funcptr) (...);

int main ()
{
    funcptr = do_something;
    funcptr (1);
    return 0;
}




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019