wpa_gui-qt4: compiler warnings

Jouni Malinen j at w1.fi
Tue Oct 14 00:43:30 EDT 2008


On Thu, Oct 09, 2008 at 08:04:00AM +1000, Kel Modderman wrote:

> fyi, a couple of compiler warnings are emitted on my system (g++ 4.3.2):
> 
> networkconfig.cpp: In member function 'virtual void NetworkConfig::addNetwork()':
> networkconfig.cpp:313: warning: deprecated conversion from string constant to 'char*'
> networkconfig.cpp:318: warning: deprecated conversion from string constant to 'char*'
> networkconfig.cpp:647: warning: deprecated conversion from string constant to 'char*'

I would categorize these as somewhat bogus warnings.. The first two are
easy to "fix" (and I did that), but the last one would require silly
workarounds just to get rid of the warning that should not really be
there in the first place. Since the changes would make the code more
difficult to understand and could introduce bugs, I did not commit this
part.


PS.

A quick compilation test with g++ 4.3.0 resulted in couple hundred of
warnings from my Qt4 header files... The four (now one) warning from
main wpa_gui source code is kind of hidden in the output ;-).

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list