[Bug c/24068] Unconditional warning when using -combine

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 26 19:41:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-26 19:41 -------
Because one file uses K&R style function defintions and the other uses a prototype which is ANSI/ISO 
style.

Simple example:
file1.c:
int f(int);
---
file2.c:
int f(a)
int a;
{
  return a;
}
---
Compile it as:
gcc file2.c file1.c -combine


So this about the following:
int f(a)
int a;
{
  return a;
}
int f(int);

Which is questionable.

So I don't think this is not an inappropriate warning.


--------------------------------------------
As an aside, I wish people would stop using K&R style C already.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24068



More information about the Gcc-bugs mailing list