URL:
<http://gna.org/patch/?5994>
Summary: gcc 5.0 and cppcheck warning fixes
Project: Freeciv
Submitted by: per
Submitted on: Sat 11 Apr 2015 09:58:11 PM UTC
Category: general
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release:
_______________________________________________________
Details:
The attached patch fixes three classes of errors, detected with cppcheck and
gcc5:
- Failure to clear buffer before copying adding strings to it.
- Using a pointer to an array that has gone out of scope.
- Bad use of not operator (applies only to left-hand side of comparison,
behavior should be identical but not for the reason you would expect)
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 11 Apr 2015 09:58:12 PM UTC Name: fix_misc_stuff.diff Size: 3kB
By: per
<http://gna.org/patch/download.php?file_id=24223>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?5994>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev