[glibmm/glibmm-3maybe] KeyFile: Fix a compiler warning.



commit 60e8aa09d725deac1512e569d6661a1c24a093c2
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Jul 28 17:35:21 2010 +0200

    KeyFile: Fix a compiler warning.
    
    	* glib/src/keyfile.ccg: The result variable was not used, because this
    	throws an exception instead.

 ChangeLog            |    7 +++++++
 glib/src/keyfile.ccg |    4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c523ddc..7b31a33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-07-28  Murray Cumming  <murrayc murrayc com>
+
+	KeyFile: Fix a compiler warning.
+	
+	* glib/src/keyfile.ccg: The result variable was not used, because this 
+	throws an exception instead.
+
 2010-07-27  Murray Cumming  <murrayc murrayc com>
 
 	Fix the miscutils build.
diff --git a/glib/src/keyfile.ccg b/glib/src/keyfile.ccg
index 64c262c..8bc8d1d 100644
--- a/glib/src/keyfile.ccg
+++ b/glib/src/keyfile.ccg
@@ -42,7 +42,7 @@ void KeyFile::load_from_data(const Glib::ustring& data, KeyFileFlags flags)
 {
   GError* gerror = 0;
 
-  const gboolean result = g_key_file_load_from_data(
+  g_key_file_load_from_data(
       gobj(), data.c_str(), data.bytes(),
       static_cast<GKeyFileFlags>(unsigned(flags)),
       &gerror);
@@ -56,7 +56,7 @@ void KeyFile::load_from_data_dirs(const std::string& file, std::string& full_pat
   GError* gerror = 0;
   char* full_path_c = 0;
 
-  const gboolean result = g_key_file_load_from_data_dirs(
+  g_key_file_load_from_data_dirs(
       gobj(), file.c_str(), &full_path_c,
       static_cast<GKeyFileFlags>(unsigned(flags)),
       &gerror);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]