Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmake/flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions paddle/phi/kernels/cpu/viterbi_decode_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion paddle/phi/kernels/strings/strings_lower_upper_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down