From 50ecf3334aeb0a54a95672cc7bb47cfcf54021e8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 16 Sep 2011 22:06:25 +0300 Subject: Fix compilation warnings. --- src/logger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/logger.cpp') diff --git a/src/logger.cpp b/src/logger.cpp index 2ec5c331e..8ce92c6d6 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -207,7 +207,8 @@ void Logger::error(const std::string &error_text) #elif defined __linux__ || __linux std::cerr << "Error: " << error_text << std::endl; std::string msg = "xmessage \"" + error_text + "\""; - system(msg.c_str()); + if (system(msg.c_str()) == -1) + std::cerr << "Error: " << error_text << std::endl; #else std::cerr << "Error: " << error_text << std::endl; #endif -- cgit v1.2.3-70-g09d2