From: Sebastian Harl Date: Fri, 19 Oct 2012 17:12:31 +0000 (+0200) Subject: ruby/main: Fixed "format not a string literal and no format arguments" errors. X-Git-Tag: 1.4.8~17^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec0f5d31bb77f72dca926ca5f44ceec115a84226;p=thirdparty%2Frrdtool-1.x.git ruby/main: Fixed "format not a string literal and no format arguments" errors. These kind of errors are reported by current versions of GCC. --- diff --git a/bindings/ruby/main.c b/bindings/ruby/main.c index 66e6fbd5..35b5f602 100644 --- a/bindings/ruby/main.c +++ b/bindings/ruby/main.c @@ -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(