File: gcc6-ftbfs.patch

package info (click to toggle)
libclaw 1.7.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,080 kB
  • sloc: cpp: 13,287; sh: 227; makefile: 8
file content (24 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (2)
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 explicitly 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 )
     {