This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13687] -Wmissing-prototypes should not be ignored for C++


------- Additional Comments From gdr at integrable-solutions dot net  2004-01-15 00:20 -------
Subject: Re:  -Wmissing-prototypes should not be ignored for C++

"t dot schutter at att dot net" <gcc-bugzilla@gcc.gnu.org> writes:

| Let me be more clear. Running:
|   g++ -c -Wmissing-prototypes gccbug.c
| should give:
|   gccbug.c:19: warning: no previous prototype for `bar'

That is not the way C++ works.  If you don't have a declaration for
bar, you get a hard error.

-- Gaby


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]