diff --git a/paddle/utils/optional.h b/paddle/utils/optional.h index ec245500551c810e9b20b8356d5bea7fc7f38ac0..0b5189b70f1ef556b59aebd76d1939162a3888a0 100644 --- a/paddle/utils/optional.h +++ b/paddle/utils/optional.h @@ -100,11 +100,7 @@ class reference_content { public: // structors ~reference_content() {} -// TODO(zhiqiu): remove it -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" reference_content(RefT r) : content_(r) {} -#pragma GCC diagnostic pop reference_content(const reference_content& operand) : content_(operand.content_) {}