URL: <http://gna.org/bugs/?25180>
Summary: gcc 7-dev compiler warnings Project: Battle for Wesnoth Submitted by: matthiaskrgr Submitted on: Thu 13 Oct 2016 10:43:35 UTC Category: Bug Severity: 3 - Normal Priority: 5 - Normal Item Group: None of the others Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Release: git Operating System: linux _______________________________________________________ Details: The most interesting is probably [ 8%] Building CXX object src/CMakeFiles/wesnoth-core.dir/serialization/string_utils.cpp.o /home/matthias/vcs/github/wesnoth2/wesnoth/src/serialization/string_utils.cpp: In function ‘std::__cxx11::string utils::urlencode(const string&)’: /home/matthias/vcs/github/wesnoth2/wesnoth/src/serialization/string_utils.cpp:486:13: warning: ‘%02X’ directive output may be truncated writing between 2 and 8 bytes into a region of size 3 [-Wformat-length=] std::string urlencode(const std::string &str) ^~~~~~~~~ /home/matthias/vcs/github/wesnoth2/wesnoth/src/serialization/string_utils.cpp:486:13: note: directive argument in the range [-128, 127] /home/matthias/vcs/github/wesnoth2/wesnoth/src/serialization/string_utils.cpp:507:42: note: format output between 4 and 10 bytes into a destination of size 4 snprintf(buf, sizeof(buf), "%%%02X", c); ^ Log attached _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Thu 13 Oct 2016 10:43:35 UTC Name: gcc7.log Size: 95kB By: matthiaskrgr <http://gna.org/bugs/download.php?file_id=29005> _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?25180> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Wesnoth-bugs mailing list Wesnoth-bugs@gna.org https://mail.gna.org/listinfo/wesnoth-bugs