The compiler was warning "format not a string literal and no format arguments".
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 19 Nov 2008 13:45:27 +0000 (13:45 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 19 Nov 2008 13:45:27 +0000 (13:45 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2223 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/layerparamtreestore.cpp
synfig-studio/trunk/src/gtkmm/layertreestore.cpp

index 74d73da..a8e4fe5 100644 (file)
@@ -286,7 +286,7 @@ LayerParamTreeStore::set_value_impl(const Gtk::TreeModel::iterator& iter, int co
        }
        catch(std::exception x)
        {
-               g_warning(x.what());
+               g_warning("%s", x.what());
        }
 }
 
index 20e0cf6..38896f0 100644 (file)
@@ -351,7 +351,7 @@ LayerTreeStore::set_value_impl(const Gtk::TreeModel::iterator& iter, int column,
        }
        catch(std::exception x)
        {
-               g_warning(x.what());
+               g_warning("%s", x.what());
        }
 }