make printWarning static std::atomic<int>