Fix some compiler warnings.
[synfig.git] / synfig-studio / trunk / src / gtkmm / keyframetreestore.cpp
index 65ad2f4..b0d4ae2 100644 (file)
@@ -6,7 +6,7 @@
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
-**     Copyright (c) 2007 Chris Moore
+**     Copyright (c) 2007, 2008 Chris Moore
 **
 **     This package is free software; you can redistribute it and/or
 **     modify it under the terms of the GNU General Public License as
@@ -448,7 +448,7 @@ KeyframeTreeStore::set_value_impl(const Gtk::TreeModel::iterator& row, int colum
        }
        catch(std::exception x)
        {
-               g_warning(x.what());
+               g_warning("%s", x.what());
        }
 }
 
@@ -828,7 +828,7 @@ KeyframeTreeStore::add_keyframe(synfig::Keyframe keyframe)
        }
        catch(std::exception x)
        {
-               g_warning(x.what());
+               g_warning("%s", x.what());
        }
 }
 
@@ -853,7 +853,7 @@ KeyframeTreeStore::remove_keyframe(synfig::Keyframe keyframe)
        }
        catch(std::exception x)
        {
-               g_warning(x.what());
+               g_warning("%s", x.what());
        }
 }
 
@@ -896,6 +896,6 @@ KeyframeTreeStore::change_keyframe(synfig::Keyframe keyframe)
        }
        catch(std::exception x)
        {
-               g_warning(x.what());
+               g_warning("%s", x.what());
        }
 }