URL: <http://gna.org/patch/?4963>
Summary: Fix clang "for loop has empty body" warning Project: Freeciv Submitted by: cazfi Submitted on: Sat 19 Jul 2014 09:00:19 PM EEST Category: freeciv-ruledit Priority: 5 - Normal Status: Ready For Test Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.6.0 _______________________________________________________ Details: tools/ruledit/rulesave.c:1438:50: error: for loop has empty body [-Werror,-Wempty-body] for (i = 0; pterr->resources[i] != NULL; i++); ^ tools/ruledit/rulesave.c:1438:50: note: put the semicolon on a separate line to silence this warning --- Added empty block, with a comment, instead, as that's more in line with out CodingStyle. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Sat 19 Jul 2014 09:00:19 PM EEST Name: EmptyLoopRulesave.patch Size: 546B By: cazfi <http://gna.org/patch/download.php?file_id=21470> _______________________________________________________ Reply to this item at: <http://gna.org/patch/?4963> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev