未验证 提交 fd3169da 编写于 作者: P PuQing 提交者: GitHub

[CodeStyle] fix c++17-extensions warning on macos (#49017)

* fix c++17-extensions warning on macos

* fix type

fix c++17-extensions warning on macos

fix c++17-extensions warning on macos
上级 28ea9aad
......@@ -220,7 +220,8 @@ if(APPLE)
-Werror=uninitialized
-Werror=tautological-constant-out-of-range-compare
-Werror=literal-conversion
-Werror=pragma-pack)
-Werror=pragma-pack
-Werror=c++17-extensions)
endif()
if(WITH_HETERPS AND WITH_PSLIB)
......
......@@ -110,7 +110,7 @@ struct Gather {
template <typename Context,
template <typename InT, typename OutT>
typename CompareFunctor,
class CompareFunctor,
typename T>
struct GetMask {
void operator()(const Context& dev_ctx,
......@@ -124,7 +124,7 @@ struct GetMask {
template <typename Context,
template <typename T>
typename BinaryFunctor,
class BinaryFunctor,
typename T>
struct BinaryOperation {
void operator()(const Context& dev_ctx,
......
......@@ -94,7 +94,7 @@ struct AsciiCaseConverter {
template <typename DeviceContext,
template <typename DeviceContextT>
typename CharConverter>
class CharConverter>
struct UTF8CaseConverter {
void operator()(const DeviceContext& dev_ctx,
const pstring* in,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册