diff --git a/cmake/flags.cmake b/cmake/flags.cmake index 6a0e1704bfa5dfe62346b3063ab9a169b3487ab9..39261a788bd182b468fe24c5b99793bd08998818 100644 --- a/cmake/flags.cmake +++ b/cmake/flags.cmake @@ -149,7 +149,6 @@ if(NOT WIN32) -Wno-unused-parameter -Wno-unused-function -Wno-error=literal-suffix - -Wno-error=unused-local-typedefs -Wno-error=ignored-attributes # Warnings in Eigen, gcc 6.3 -Wno-error=terminate # Warning in PADDLE_ENFORCE -Wno-error=int-in-bool-context # Warning in Eigen gcc 7.2 diff --git a/paddle/fluid/operators/collective/c_comm_init_op.cc b/paddle/fluid/operators/collective/c_comm_init_op.cc index d3d7f8423053d1f742ce15341c13b82ffbea5649..59fbd02b5c0864608980ff808c684a25605e8a74 100644 --- a/paddle/fluid/operators/collective/c_comm_init_op.cc +++ b/paddle/fluid/operators/collective/c_comm_init_op.cc @@ -54,7 +54,6 @@ class CCommInitOp : public framework::OperatorBase { // TODO(wangxi): Put this in the unified header file #if defined(PADDLE_WITH_NCCL) || defined(PADDLE_WITH_RCCL) using UniqueId = ncclUniqueId; - using Place = platform::CUDAPlace; using CommContext = platform::NCCLCommContext; #elif defined(PADDLE_WITH_XPU_BKCL) using UniqueId = BKCLUniqueId; diff --git a/paddle/fluid/operators/elementwise/mkldnn/elementwise_mkldnn_op.h b/paddle/fluid/operators/elementwise/mkldnn/elementwise_mkldnn_op.h index e1b829b03a4d49f6e8efe0509ab93035b466895c..7ab53437f8f4a381753e6c1d23743c3da14e5b70 100644 --- a/paddle/fluid/operators/elementwise/mkldnn/elementwise_mkldnn_op.h +++ b/paddle/fluid/operators/elementwise/mkldnn/elementwise_mkldnn_op.h @@ -143,7 +143,6 @@ class EltwiseMKLDNNGradKernel : public ElemwiseGradKernel { public: void Compute(const framework::ExecutionContext& ctx) const override { ElemwiseGradKernel::Compute(ctx); - using Tensor = phi::DenseTensor; auto& dev_ctx = ctx.template device_context(); diff --git a/paddle/phi/kernels/xpu/rnn_kernel.cc b/paddle/phi/kernels/xpu/rnn_kernel.cc index 9465839043a6ee3a289f0522e38c5fcb1160387a..faa4dce29f77d880406fdbe72dabbaa503944476 100644 --- a/paddle/phi/kernels/xpu/rnn_kernel.cc +++ b/paddle/phi/kernels/xpu/rnn_kernel.cc @@ -39,7 +39,6 @@ void RnnKernel(const Context& dev_ctx, DenseTensor* dropout_state, std::vector state, DenseTensor* reserve) { - using XPUTyp = typename XPUTypeTrait::Type; if (dropout_state->IsInitialized()) { if (dropout_state->numel() != out->numel()) dropout_state->clear(); }