From: Peter van Dijk Date: Mon, 16 Feb 2015 09:29:11 +0000 (+0100) Subject: Avoid warning: ISO C++11 does not allow conversion from string literal to 'char ... X-Git-Tag: dnsdist-1.0.0-alpha1~297 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=013824a0ecd83ca57a9bec9e615aa62e617cb248;p=pdns Avoid warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wc++11-compat-deprecated-writable-strings] --- diff --git a/pdns/test-bindparser_cc.cc b/pdns/test-bindparser_cc.cc index e025a25dd..b3eb768a1 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);