summaryrefslogtreecommitdiff
path: root/cpp/include
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2014-02-07 13:44:03 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2014-02-07 13:44:03 +0000
commitb969abd4bdb574e245fd050ff7a3889674e39a56 (patch)
treed9f707c1fc8dcfa2f67e882d7a8f99d63379d132 /cpp/include
parent04bec3152a1760aff3882a946978c57472399f93 (diff)
downloadqpid-python-b969abd4bdb574e245fd050ff7a3889674e39a56.tar.gz
QPID-5499: Fix Ruby/Perl bindings when built with -Werror=format-security
Changed the swig descriptors so that they use a constant format string. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1565651 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include')
-rw-r--r--cpp/include/qpid/swig_perl_typemaps.i2
-rw-r--r--cpp/include/qpid/swig_ruby_typemaps.i2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/include/qpid/swig_perl_typemaps.i b/cpp/include/qpid/swig_perl_typemaps.i
index f1425ebd67..6c0e6d8bac 100644
--- a/cpp/include/qpid/swig_perl_typemaps.i
+++ b/cpp/include/qpid/swig_perl_typemaps.i
@@ -120,7 +120,7 @@
}
}
} catch (qpid::types::Exception& ex) {
- Perl_croak(aTHX_ ex.what());
+ Perl_croak(aTHX_ "%s", ex.what());
}
if (!result)
diff --git a/cpp/include/qpid/swig_ruby_typemaps.i b/cpp/include/qpid/swig_ruby_typemaps.i
index 1a07cc86b0..4e07088bce 100644
--- a/cpp/include/qpid/swig_ruby_typemaps.i
+++ b/cpp/include/qpid/swig_ruby_typemaps.i
@@ -106,7 +106,7 @@
}
} catch (qpid::types::Exception& ex) {
static VALUE error = rb_define_class("Error", rb_eStandardError);
- rb_raise(error, ex.what());
+ rb_raise(error, "%s", ex.what());
}
return result;