diff --git a/srcpkgs/wesnoth/patches/glibc-2.26-assert.patch b/srcpkgs/wesnoth/patches/glibc-2.26-assert.patch new file mode 100644 index 00000000000..dea28f41a7d --- /dev/null +++ b/srcpkgs/wesnoth/patches/glibc-2.26-assert.patch @@ -0,0 +1,31 @@ +--- src/replay.cpp.orig 2016-05-18 00:57:46.000000000 +0000 ++++ src/replay.cpp 2017-09-22 20:22:56.660358034 +0000 +@@ -403,7 +403,7 @@ + last_location = *loc_it; + + const config &speak = command(last_location).child("speak"); +- assert(speak); ++ assert(static_cast(speak)); + add_chat_log_entry(speak, chat_log_appender); + + } +@@ -581,7 +581,7 @@ + config &replay::command(int n) + { + config & retv = cfg_.child("command", n); +- assert(retv); ++ assert(static_cast(retv)); + return retv; + } + +--- src/playcampaign.cpp.orig 2016-05-18 00:57:46.000000000 +0000 ++++ src/playcampaign.cpp 2017-09-22 20:25:32.094366053 +0000 +@@ -192,7 +192,7 @@ + if (gamestate.replay_start().empty()){ + // Backwards compatibility code for 1.2 and 1.2.1 + const config &scenario = game_config.find_child(type,"id",gamestate.carryover_sides_start["next_scenario"]); +- assert(scenario); ++ assert(static_cast(scenario)); + gamestate.replay_start() = scenario; + } + starting_pos = gamestate.replay_start();