We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e75a158 + 6cce4f6 commit f6574faCopy full SHA for f6574fa
1 file changed
TAO/tao/PortableServer/Servant_Base.cpp
@@ -62,7 +62,15 @@ TAO_ServantBase::TAO_ServantBase (TAO_Operation_Table *optable)
62
}
63
64
TAO_ServantBase::TAO_ServantBase (const TAO_ServantBase &rhs)
65
- : ref_count_ (1)
+ :
66
+#if defined __GNUC__ && __GNUC__ < 9
67
+ // GCC version 8 issues an invalid warning without the next non-comment line.
68
+ // Other compilers (MSVC) may warn when this line is present, since it will never be used for initialization.
69
+ // In copy constructor TAO_ServantBase::TAO_ServantBase(const TAO_ServantBase&):
70
+ // warning: base class class TAO_Abstract_ServantBase should be explicitly initialized in the copy constructor [-Wextra]
71
+ TAO_Abstract_ServantBase (),
72
+#endif
73
+ ref_count_ (1)
74
, optable_ (rhs.optable_)
75
{
76
0 commit comments