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:19 -------
Subject: Re:  -Wmissing-prototypes should not be ignored for C++

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

| Warning that the option is not valid is not the right solution!
| Emitting a warning about functions that use "C" linkange when compiling C++ code
| and -Wmissing-prototypes is specified is what should happen.

I don't understand that argument.  "C" linkage is not a switch  to
write C. There is nothing like a missing prototype in C++.  There that
notion of warning is void os sense.

-- 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]