public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: MM <mmpmm@yahoo.it>
To: gnu-gcc-bug@moderators.isc.org
Subject: strange error
Date: Mon, 08 Nov 2004 18:40:00 -0000	[thread overview]
Message-ID: <RrMjd.289065$35.13310522@news4.tin.it> (raw)

When I try to compile this code (witch has one ')' missing)
I get a strange error... Is it a bug?

I use gcc (GCC) 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)

29: for(i=1; i<nArg ;printf("%s\n", vsArg[i],i++)
30:   if(strcmp(vsArg[i], "-png")==0)
31:     opz.nomeimg = vsArg[++i];

cbarre.c: In function `argomenti':
cbarre.c:29: warning: too many arguments for format
cbarre.c:30: parse error before "if"
cbarre.c:30: `__s1_len' undeclared (first use in this function)
cbarre.c:30: (Each undeclared identifier is reported only once
cbarre.c:30: for each function it appears in.)
cbarre.c:30: `__s2_len' undeclared (first use in this function)
cbarre.c:30: warning: left-hand operand of comma expression has no effect
cbarre.c:30: warning: left-hand operand of comma expression has no effect
cbarre.c:30: warning: left-hand operand of comma expression has no effect
cbarre.c:30: warning: left-hand operand of comma expression has no effect
cbarre.c: At top level:
cbarre.c:30: parse error before ')' token
cbarre.c:32: parse error before '[' token
cbarre.c:32: warning: type defaults to `int' in declaration of `__result'
cbarre.c:32: ISO C forbids data definition with no type or storage class
cbarre.c:32: parse error before '}' token
cbarre.c:32: conflicting declarations of `__result'
cbarre.c:32: `__result' previously declared here
cbarre.c:32: warning: `__result' was declared `extern' and later `static'
cbarre.c:32: `vsArg' undeclared here (not in a function)
cbarre.c:32: `i' undeclared here (not in a function)
cbarre.c:32: `__s2' undeclared here (not in a function)
cbarre.c:32: parse error before "if"
cbarre.c:32: warning: type defaults to `int' in declaration of `__result'
cbarre.c:32: conflicting declarations of `__result'
cbarre.c:32: `__result' previously defined here
cbarre.c:32: ISO C forbids data definition with no type or storage class
cbarre.c:32: parse error before '}' token
cbarre.c:32: warning: type defaults to `int' in declaration of `__result'
cbarre.c:32: ISO C forbids data definition with no type or storage class
cbarre.c:32: parse error before '}' token
cbarre.c:32: conflicting declarations of `__result'
cbarre.c:32: `__result' previously declared here
cbarre.c:32: warning: `__result' was declared `extern' and later `static'
cbarre.c:32: `__s1' undeclared here (not in a function)
cbarre.c:32: parse error before "if"
cbarre.c:32: warning: type defaults to `int' in declaration of `__result'
cbarre.c:32: conflicting declarations of `__result'
cbarre.c:32: `__result' previously defined here
cbarre.c:32: ISO C forbids data definition with no type or storage class
cbarre.c:32: parse error before '}' token
cbarre.c:34: parse error before '[' token
cbarre.c:34: warning: type defaults to `int' in declaration of `__result'
cbarre.c:34: ISO C forbids data definition with no type or storage class
cbarre.c:34: parse error before '}' token
cbarre.c:34: conflicting declarations of `__result'
cbarre.c:34: `__result' previously declared here
cbarre.c:34: warning: `__result' was declared `extern' and later `static'
cbarre.c:34: `vsArg' undeclared here (not in a function)
cbarre.c:34: `i' undeclared here (not in a function)
cbarre.c:34: `__s2' undeclared here (not in a function)
cbarre.c:34: parse error before "if"
cbarre.c:34: warning: type defaults to `int' in declaration of `__result'
cbarre.c:34: conflicting declarations of `__result'
cbarre.c:34: `__result' previously defined here
cbarre.c:34: ISO C forbids data definition with no type or storage class
cbarre.c:34: parse error before '}' token
cbarre.c:34: warning: type defaults to `int' in declaration of `__result'
cbarre.c:34: ISO C forbids data definition with no type or storage class
cbarre.c:34: parse error before '}' token
cbarre.c:34: conflicting declarations of `__result'
cbarre.c:34: `__result' previously declared here
cbarre.c:34: warning: `__result' was declared `extern' and later `static'
cbarre.c:34: `__s1' undeclared here (not in a function)
cbarre.c:34: parse error before "if"
cbarre.c:34: warning: type defaults to `int' in declaration of `__result'
cbarre.c:34: conflicting declarations of `__result'
cbarre.c:34: `__result' previously defined here
cbarre.c:34: ISO C forbids data definition with no type or storage class
cbarre.c:34: parse error before '}' token
cbarre.c:36: parse error before '[' token
cbarre.c:36: warning: type defaults to `int' in declaration of `__result'
cbarre.c:36: ISO C forbids data definition with no type or storage class
cbarre.c:36: parse error before '}' token
cbarre.c:36: conflicting declarations of `__result'
cbarre.c:36: `__result' previously declared here
cbarre.c:36: warning: `__result' was declared `extern' and later `static'
cbarre.c:36: `vsArg' undeclared here (not in a function)
cbarre.c:36: `i' undeclared here (not in a function)
cbarre.c:36: `__s2' undeclared here (not in a function)
cbarre.c:36: parse error before "if"
cbarre.c:36: warning: type defaults to `int' in declaration of `__result'
cbarre.c:36: conflicting declarations of `__result'
cbarre.c:36: `__result' previously defined here
cbarre.c:36: ISO C forbids data definition with no type or storage class
cbarre.c:36: parse error before '}' token
cbarre.c:36: warning: type defaults to `int' in declaration of `__result'
cbarre.c:36: ISO C forbids data definition with no type or storage class
cbarre.c:36: parse error before '}' token
cbarre.c:36: conflicting declarations of `__result'
cbarre.c:36: `__result' previously declared here
cbarre.c:36: warning: `__result' was declared `extern' and later `static'
cbarre.c:36: `__s1' undeclared here (not in a function)
cbarre.c:36: parse error before "if"
cbarre.c:36: warning: type defaults to `int' in declaration of `__result'
cbarre.c:36: conflicting declarations of `__result'
cbarre.c:36: `__result' previously defined here
cbarre.c:36: ISO C forbids data definition with no type or storage class
cbarre.c:36: parse error before '}' token
cbarre.c:38: parse error before '[' token
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously declared here
cbarre.c:38: warning: `__result' was declared `extern' and later `static'
cbarre.c:38: `vsArg' undeclared here (not in a function)
cbarre.c:38: `i' undeclared here (not in a function)
cbarre.c:38: `__s2' undeclared here (not in a function)
cbarre.c:38: parse error before "if"
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously defined here
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously declared here
cbarre.c:38: warning: `__result' was declared `extern' and later `static'
cbarre.c:38: `__s1' undeclared here (not in a function)
cbarre.c:38: parse error before "if"
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously defined here
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: parse error before '[' token
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously declared here
cbarre.c:38: warning: `__result' was declared `extern' and later `static'
cbarre.c:38: `vsArg' undeclared here (not in a function)
cbarre.c:38: `i' undeclared here (not in a function)
cbarre.c:38: `__s2' undeclared here (not in a function)
cbarre.c:38: parse error before "if"
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously defined here
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously declared here
cbarre.c:38: warning: `__result' was declared `extern' and later `static'
cbarre.c:38: `__s1' undeclared here (not in a function)
cbarre.c:38: parse error before "if"
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously defined here
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: parse error before '[' token
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously declared here
cbarre.c:38: warning: `__result' was declared `extern' and later `static'
cbarre.c:38: `vsArg' undeclared here (not in a function)
cbarre.c:38: `i' undeclared here (not in a function)
cbarre.c:38: `__s2' undeclared here (not in a function)
cbarre.c:38: parse error before "if"
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously defined here
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously declared here
cbarre.c:38: warning: `__result' was declared `extern' and later `static'
cbarre.c:38: `__s1' undeclared here (not in a function)
cbarre.c:38: parse error before "if"
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously defined here
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:32: register name not specified for `__result'
cbarre.c:32: register name not specified for `__result'
cbarre.c:34: register name not specified for `__result'
cbarre.c:34: register name not specified for `__result'
cbarre.c:36: register name not specified for `__result'
cbarre.c:36: register name not specified for `__result'
cbarre.c:38: register name not specified for `__result'
cbarre.c:38: register name not specified for `__result'
cbarre.c:38: register name not specified for `__result'
cbarre.c:38: register name not specified for `__result'
cbarre.c:38: register name not specified for `__result'
cbarre.c:38: register name not specified for `__result'
make: *** [/home/mirko/codici/eseg/cbarre.o] Error 1


             reply	other threads:[~2004-11-08 18:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-08 18:40 MM [this message]
2004-11-10 11:38 Mirko Melis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='RrMjd.289065$35.13310522@news4.tin.it' \
    --to=mmpmm@yahoo.it \
    --cc=gnu-gcc-bug@moderators.isc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).