Format strings warnings

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Format strings warnings

Post by _mental_ »

There is bunch of format strings warnings reported by GCC/Clang. They clutter compiler's output and the real bug may slip through.
Spoiler: Warnings (formatting may be affected by word wrap)
Fixed in this pull request.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: Format strings warnings

Post by Edward-san »

I reported already here. There's also a request to split a change into a proper commit for easy backporting to forks not having zscript yet.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Format strings warnings

Post by Graf Zahl »

The one in zcc_compile.cpp is not correct. In that case it's not the format specifier that's wrong but the value being passed.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Format strings warnings

Post by _mental_ »

Force pushed the changes.
Post Reply

Return to “Closed Bugs [GZDoom]”