diff --git a/src/core/ext/transport/chttp2/transport/internal.h b/src/core/ext/transport/chttp2/transport/internal.h index 5bca566dc2a..60cc280c431 100644 --- a/src/core/ext/transport/chttp2/transport/internal.h +++ b/src/core/ext/transport/chttp2/transport/internal.h @@ -237,7 +237,6 @@ typedef enum { GRPC_CHTTP2_KEEPALIVE_STATE_DISABLED, } grpc_chttp2_keepalive_state; - struct grpc_chttp2_transport { grpc_transport base; /* must be first */ gpr_refcount refs; diff --git a/src/core/lib/support/manual_constructor.h b/src/core/lib/support/manual_constructor.h index 5ad07a6709f..25731936b1c 100644 --- a/src/core/lib/support/manual_constructor.h +++ b/src/core/lib/support/manual_constructor.h @@ -151,14 +151,16 @@ class PolymorphicManualConstructor { private: template void FinishInit(DerivedType* p) { - static_assert(manual_ctor_impl::is_one_of::value, - "DerivedType must be one of the predeclared DerivedTypes"); + static_assert( + manual_ctor_impl::is_one_of::value, + "DerivedType must be one of the predeclared DerivedTypes"); GPR_ASSERT(reinterpret_cast(static_cast(p)) == p); } typename std::aligned_storage< grpc_core::manual_ctor_impl::max_size_of::value, - grpc_core::manual_ctor_impl::max_align_of::value>::type space_; + grpc_core::manual_ctor_impl::max_align_of::value>::type + space_; }; template diff --git a/test/core/support/manual_constructor_test.cc b/test/core/support/manual_constructor_test.cc index 13368ee62b3..714f8b21a01 100644 --- a/test/core/support/manual_constructor_test.cc +++ b/test/core/support/manual_constructor_test.cc @@ -18,7 +18,6 @@ /* Test of gpr synchronization support. */ -#include "src/core/lib/support/abstract.h" #include "src/core/lib/support/manual_constructor.h" #include #include @@ -27,6 +26,7 @@ #include #include #include +#include "src/core/lib/support/abstract.h" #include "test/core/util/test_config.h" class A { @@ -44,6 +44,7 @@ class B : public A { ~B() {} const char* foo() override { return "B_foo"; } char get_junk() { return junk[0]; } + private: char junk[1000]; }; @@ -54,6 +55,7 @@ class C : public B { ~C() {} virtual const char* bar() { return "C_bar"; } char get_more_junk() { return more_junk[0]; } + private: char more_junk[1000]; };