From 013824a0ecd83ca57a9bec9e615aa62e617cb248 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Mon, 16 Feb 2015 10:29:11 +0100 Subject: [PATCH] Avoid warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wc++11-compat-deprecated-writable-strings] --- pdns/test-bindparser_cc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/test-bindparser_cc.cc b/pdns/test-bindparser_cc.cc index e025a25ddf..b3eb768a16 100644 --- a/pdns/test-bindparser_cc.cc +++ b/pdns/test-bindparser_cc.cc @@ -15,7 +15,7 @@ using std::string; BOOST_AUTO_TEST_SUITE(bindparser_cc) BOOST_AUTO_TEST_CASE(test_parser) { - char *srcdir; + const char *srcdir; std::ostringstream pathbuf; BindParser BP; BOOST_CHECK_THROW( BP.parse("../regression-tests/named.confx"), PDNSException); -- 2.47.2