diff --git a/include/ginkgo/core/stop/residual_norm_reduction.hpp b/include/ginkgo/core/stop/residual_norm_reduction.hpp index 2d97bfba0e8..7d082953ba6 100644 --- a/include/ginkgo/core/stop/residual_norm_reduction.hpp +++ b/include/ginkgo/core/stop/residual_norm_reduction.hpp @@ -30,5 +30,10 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *************************************************************/ +#ifdef __GNUC__ #warning This file is deprecated and will be removed in a later major release. +#elif defined(_MSC_VER) +#pragma message WARN( \ + "This file is deprecated and will be removed in a later major release.") +#endif #include