set GCC diagnostic as warning for the case -Werror=deprecated-declarations