cppcheck svn6612

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Message
Author
User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: cppcheck svn6612

#16 Post by Geoff the Medio »

That whole file is not used on OSX, so I'm not really concerned about it. If someone wants to pretty it up, then feel free, I suppose.

I don't understand the warnings about the other macros.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: cppcheck svn6612

#17 Post by Geoff the Medio »

Nagilum wrote:

Code: Select all

+[UI/Sound.cpp:104]: (error) Mismatching allocation and deallocation: array
+[UI/Sound.cpp:107]: (error) Mismatching allocation and deallocation: array
+[UI/Sound.cpp:110]: (error) Mismatching allocation and deallocation: array
+[UI/Sound.cpp:363] -> [UI/Sound.cpp:371]: (error) Iterator 'it' used after element has been erased.
Fixed?

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: cppcheck svn6612

#18 Post by Nagilum »

Geoff the Medio wrote:
Nagilum wrote:

Code: Select all

+[UI/Sound.cpp:104]: (error) Mismatching allocation and deallocation: array
+[UI/Sound.cpp:107]: (error) Mismatching allocation and deallocation: array
+[UI/Sound.cpp:110]: (error) Mismatching allocation and deallocation: array
+[UI/Sound.cpp:363] -> [UI/Sound.cpp:371]: (error) Iterator 'it' used after element has been erased.
Fixed?
Yes, 6803 doesn't show this error/warning anymore. :)

Post Reply