From 56198818b05d621107d8bdd8bac778d63d8af4f5 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Fri, 1 Jun 2018 22:53:33 -0500 Subject: [PATCH] Work around compiler warning regarding C++17 name mangling [9/13] Building CXX object CMakeFiles/fishlib.dir/src/builtin_string.cpp.o ../src/builtin_string.cpp:1221:12: warning: mangled name of 'string_transform' will change in C++17 due to non-throwing exception specification in function signature [-Wc++17-compat-mangling] static int string_transform(parser_t &parser, io_streams_t &streams, int argc, wchar_t **argv, decltype(std::towlower) func) { ^ 1 warning generated. --- src/builtin_string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin_string.cpp b/src/builtin_string.cpp index 3571df22a..4d5eccbac 100644 --- a/src/builtin_string.cpp +++ b/src/builtin_string.cpp @@ -1218,7 +1218,7 @@ static int string_trim(parser_t &parser, io_streams_t &streams, int argc, wchar_ } // A helper function for lower and upper. -static int string_transform(parser_t &parser, io_streams_t &streams, int argc, wchar_t **argv, decltype(std::towlower) func) { +static int string_transform(parser_t &parser, io_streams_t &streams, int argc, wchar_t **argv, std::wint_t (*func)(std::wint_t)) { options_t opts; opts.quiet_valid = true; int optind;