Disable warning -Wbitwise-instead-of-logical only for clang where the warning actually exists (i.e. >= 14) and call #pragma diagnostic pop only if previously called push.
-Wbitwise-instead-of-logical
#pragma diagnostic pop
push