From 41328940bc7dc640d5777f86e048c13d6fce7f29 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 2 Nov 2018 18:47:47 +0300 Subject: Fix 'cast between incompatible function types' GCC 8 warnings (-Wextra) --- web/apache/service.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/apache/service.cxx b/web/apache/service.cxx index bad98cc..e752f65 100644 --- a/web/apache/service.cxx +++ b/web/apache/service.cxx @@ -16,12 +16,14 @@ #include // strlen(), strcmp() #include +#include // function_cast() #include #include #include using namespace std; +using namespace butl; namespace web { @@ -52,7 +54,7 @@ namespace web *d++ = { i.first->first.c_str (), - reinterpret_cast (parse_option), + function_cast (parse_option), this, // Allow directives in both server and directory configuration @@ -77,7 +79,7 @@ namespace web *d++ = { "SetHandler", - reinterpret_cast (parse_option), + function_cast (parse_option), this, RSRC_CONF | ACCESS_CONF, RAW_ARGS, -- cgit v1.1