summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2010-07-28 17:35:21 +0200
committerMurray Cumming <murrayc@murrayc.com>2010-07-28 17:35:21 +0200
commit60e8aa09d725deac1512e569d6661a1c24a093c2 (patch)
tree2caf90500ecd911f115a77f56363114ac5e3f923
parent224e9fb7db7dba4d90840c14b014ede2aa41a876 (diff)
downloadglibmm-60e8aa09d725deac1512e569d6661a1c24a093c2.tar.gz
KeyFile: Fix a compiler warning.
* glib/src/keyfile.ccg: The result variable was not used, because this throws an exception instead.
-rw-r--r--ChangeLog7
-rw-r--r--glib/src/keyfile.ccg4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c523ddcc..7b31a338 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 64c262cb..8bc8d1de 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);