Hi,

I get:

In file included from IcesWtApp.h:5,
                 from IcesWtApp.cpp:1:
/usr/include/Wt/WTreeView:280: error: unused parameter 'uri'

I'm using gcc 4.4.2 and a set of very restrictive compiler options:

-fstrict-aliasing -pedantic -Wall -Werror -Wunused -Wno-import -Wformat 
-Wformat-y2k 
-Wformat-nonliteral -Wformat-security -Wformat-y2k -Wswitch-enum 
-Wunknown-pragmas 
-Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align 
-Wwrite-strings 
-Wmissing-noreturn -Wno-multichar -Wparentheses -Wredundant-decls -Winline 
-Wdisabled-optimization -Wfatal-errors -Wmissing-include-dirs
-Wvariadic-macros -Wvolatile-register-var -Wstrict-aliasing=2 
-Wextra -Winit-self -std=c++98 -Wno-invalid-offsetof -funit-at-a-time

I used a macro like:

#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#endif

and fixed the code in 'Wt/WTreeView' like:

  void setImagePack(const std::string& uri UNUSED) { }

to get around the issue.

Comments?


Greetings

Andreas


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to