1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Markus Koschany <apo@debian.org>
Date: Sun, 21 Aug 2016 23:11:33 +0200
Subject: gcc6 ftbfs
Fix FTBFS with GCC-6 by explictly casting to bool.
Forwarded: no
---
claw/code/configuration_file.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/claw/code/configuration_file.cpp b/claw/code/configuration_file.cpp
index e7bb26a..d650e60 100644
--- a/claw/code/configuration_file.cpp
+++ b/claw/code/configuration_file.cpp
@@ -441,7 +441,7 @@ claw::configuration_file::file_end() const
bool claw::configuration_file::get_line
( std::istream& is, const syntax_description& syntax, std::string& line ) const
{
- bool result = text::getline(is, line);
+ bool result = static_cast<bool>(text::getline(is, line));
if ( result )
{
|