]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
ruby/main: Fixed "format not a string literal and no format arguments" errors. 352/head
authorSebastian Harl <sh@teamix.net>
Fri, 19 Oct 2012 17:12:31 +0000 (19:12 +0200)
committerSebastian Harl <sh@teamix.net>
Fri, 19 Oct 2012 17:12:31 +0000 (19:12 +0200)
These kind of errors are reported by current versions of GCC.

bindings/ruby/main.c

index 66e6fbd599f034a6fe0f5f8af1634c020151141c..35b5f6020dd1ea0d1315358360e14b097f18bfba 100644 (file)
@@ -27,7 +27,7 @@ typedef rrd_info_t *(
 
 #define RRD_CHECK_ERROR  \
     if (rrd_test_error()) \
-      rb_raise(rb_eRRDError, rrd_get_error()); \
+      rb_raise(rb_eRRDError, "%s", rrd_get_error()); \
     rrd_clear_error();
 
 string_arr string_arr_new(