[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi] Pedantic errors in wx-2.6.2
From: |
Greg Chicares |
Subject: |
[lmi] Pedantic errors in wx-2.6.2 |
Date: |
Sun, 19 Mar 2006 20:18:05 +0000 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
Vadim--I fed the output from building lmi's 'skeleton' branch
with wx-2.6.2 into
grep -w error |sort |uniq
and got the following:
local/include/wx-2.6/wx/clntdata.h:26: error: extra `;'
local/include/wx-2.6/wx/clntdata.h:31: error: extra `;'
local/include/wx-2.6/wx/gdicmn.h:476: error: extra `;'
local/include/wx-2.6/wx/hashmap.h:684: error: extra `;'
local/include/wx-2.6/wx/image.h:123: error: extra `;'
so it looks like wx headers are almost "pedantic-clean".
I removed the five semicolons, and the application compiled,
linked, and ran okay.
I didn't look at the macro definitions, but it looks like
the invocations are at namespace scope, where a null
statement actually isn't allowed by the standard, as in
the two-character source file {semicolon, newline}.
With wx already so close to perfect in this respect, it
would be a shame not to fix this somehow.
If you'd rather be able to write semicolons at the end of
all macro invocations, even at namespace scope, then may I
suggest some trick like this:
http://groups.google.com/group/comp.lang.c++.moderated/msg/3e1b9895025f514d
- [lmi] Pedantic errors in wx-2.6.2,
Greg Chicares <=