This is the mail archive of the gcc-patches@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] |
On 5/17/06, Roman Kononov <kononov195-far@yahoo.com> wrote:Are you serious?This patch adds an option for g++ to emit a warning when it sees extern "C" { struct foo {}; } Such empty structures have different sizes in C++ and C modules. Linked together the modules make the life painful. Supplying -Wempty-c-struct option tells g++ to warn. Default is not to warn.
Why not warn for C code, too?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |