C++ tips & tricks
Disable a compiler warning
This is useful if the warning is emitted by code you don’t control.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <libxml++/libxml++.h>
#pragma GCC diagnostic pop
Ref: https://www.fluentcpp.com/2019/08/30/how-to-disable-a-warning-in-cpp/