[Fixed]A new compiler warning in r4143

Bugs that have been fixed.

[Fixed]A new compiler warning in r4143

Postby mnk » 08 Mar 2010 13:06

This revision as added a new compiler warning to the already existing ones.
This one, however sounds far more severe:
source/r_data.cpp: In function ‘void ParseGZLightDef(VScriptParser*, int)’:
source/r_data.cpp:1276: warning: cannot pass objects of non-POD type ‘class VStr’ through ‘...’; call will abort at runtime
source/r_data.cpp:1276: warning: format ‘%s’ expects type ‘char*’, but argument 2 has type ‘int’
(of course, I mean the first part, not the one related to _FORTIFY_SOURCE)
User avatar
mnk
 
Posts: 46
Joined: 27 Mar 2008 10:50
Location: Ełk, Poland

Re: A new compiler warning in r4143

Postby Firebrand » 12 Mar 2010 14:25

Do these appear in the latest revision?
I'm the ruler of the Fire Power.....
User avatar
Firebrand
 
Posts: 811
Joined: 11 Feb 2004 08:12
Location: Mexico

Re: A new compiler warning in r4143

Postby mnk » 13 Mar 2010 17:38

Well, as it was just using va and String together, no (r4154 did change that).

However, looks like I should have posted a full list of warnings - there are a few
in other files too.

So...

a semi-important one
Code: Select all
source/vc_decorate.cpp: In function ‘void ProcessDecorateScripts()’:
source/vc_decorate.cpp:4149: warning: cannot pass objects of non-POD type ‘class VStr’ through ‘...’; call will abort at runtime
source/vc_decorate.cpp:4158: warning: cannot pass objects of non-POD type ‘class VStr’ through ‘...’; call will abort at runtime


just a need for clarification:
Code: Select all
source/vc_package.cpp: In member function ‘void VPackage::WriteObject(const VStr&)’:
source/vc_package.cpp:689: warning: format ‘%6ld’ expects type ‘long int’, but argument 3 has type ‘unsigned int’


There's also a handful of 'format not a string literal and no format arguments', but those I can just ignore
(unless you'd want to fix those too).
User avatar
mnk
 
Posts: 46
Joined: 27 Mar 2008 10:50
Location: Ełk, Poland

Re: A new compiler warning in r4143

Postby Firebrand » 12 Jun 2010 14:44

Closing this then :).
I'm the ruler of the Fire Power.....
User avatar
Firebrand
 
Posts: 811
Joined: 11 Feb 2004 08:12
Location: Mexico


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests

cron