Disable warning about explicitly initializing base constructor inside copy constructor of derived class

后端 未结 3 605
没有蜡笔的小新
没有蜡笔的小新 2021-01-22 15:05

I\'m using g++ version 4.2.1 with -Wextra enabled. I\'m including a header from a library, and I keep getting the following warning about a class in the library, which is enable

3条回答
  •  礼貌的吻别
    2021-01-22 15:47

    If it's not a real problem, and you can't change the library (I guess you can't or you'd have done so), you can disable warnings temporarily using the GCC diagnostic pragma.

提交回复
热议问题