From ec0f5d31bb77f72dca926ca5f44ceec115a84226 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 19 Oct 2012 19:12:31 +0200 Subject: [PATCH] ruby/main: Fixed "format not a string literal and no format arguments" errors. These kind of errors are reported by current versions of GCC. --- bindings/ruby/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.47.2