From 38bf7bde9e91a974fe4080a474a2b7409d6ba845 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 3 Dec 2019 11:20:33 -0700 Subject: [PATCH] Use DEAL_II_WARNING instead. --- include/deal.II/base/std_cxx11/array.h | 7 ++++--- include/deal.II/base/std_cxx11/bind.h | 6 +++--- include/deal.II/base/std_cxx11/condition_variable.h | 6 +++--- include/deal.II/base/std_cxx11/function.h | 6 +++--- include/deal.II/base/std_cxx11/iterator.h | 7 ++++--- include/deal.II/base/std_cxx11/mutex.h | 6 +++--- include/deal.II/base/std_cxx11/shared_ptr.h | 7 ++++--- include/deal.II/base/std_cxx11/thread.h | 6 +++--- include/deal.II/base/std_cxx11/tuple.h | 6 +++--- include/deal.II/base/std_cxx11/type_traits.h | 7 ++++--- include/deal.II/base/std_cxx11/unique_ptr.h | 7 ++++--- 11 files changed, 38 insertions(+), 33 deletions(-) diff --git a/include/deal.II/base/std_cxx11/array.h b/include/deal.II/base/std_cxx11/array.h index c34e24696d..147c97f8d0 100644 --- a/include/deal.II/base/std_cxx11/array.h +++ b/include/deal.II/base/std_cxx11/array.h @@ -16,11 +16,12 @@ #ifndef dealii_std_cxx11_array_h #define dealii_std_cxx11_array_h -#warning \ - "This file is deprecated. Simply use the corresponding C++11 header ." - #include +DEAL_II_WARNING( + "This file is deprecated. Simply use the corresponding C++11 header .") + + #include DEAL_II_NAMESPACE_OPEN namespace std_cxx11 diff --git a/include/deal.II/base/std_cxx11/bind.h b/include/deal.II/base/std_cxx11/bind.h index 7647deff95..9c89df6005 100644 --- a/include/deal.II/base/std_cxx11/bind.h +++ b/include/deal.II/base/std_cxx11/bind.h @@ -17,11 +17,11 @@ #define dealii_std_cxx11_bind_h -#warning \ - "This file is deprecated. Simply use the corresponding C++11 header ." - #include +DEAL_II_WARNING( + "This file is deprecated. Simply use the corresponding C++11 header .") + #include DEAL_II_NAMESPACE_OPEN diff --git a/include/deal.II/base/std_cxx11/condition_variable.h b/include/deal.II/base/std_cxx11/condition_variable.h index 730a5f0a8c..288abcbac9 100644 --- a/include/deal.II/base/std_cxx11/condition_variable.h +++ b/include/deal.II/base/std_cxx11/condition_variable.h @@ -16,11 +16,11 @@ #ifndef dealii_std_cxx11_condition_variable_h #define dealii_std_cxx11_condition_variable_h -#warning \ - "This file is deprecated. Simply use the corresponding C++11 header ." - #include +DEAL_II_WARNING( + "This file is deprecated. Simply use the corresponding C++11 header .") + #include DEAL_II_NAMESPACE_OPEN namespace std_cxx11 diff --git a/include/deal.II/base/std_cxx11/function.h b/include/deal.II/base/std_cxx11/function.h index 2efbc79f15..401c69e2da 100644 --- a/include/deal.II/base/std_cxx11/function.h +++ b/include/deal.II/base/std_cxx11/function.h @@ -16,11 +16,11 @@ #ifndef dealii_std_cxx11_function_h #define dealii_std_cxx11_function_h -#warning \ - "This file is deprecated. Simply use the corresponding C++11 header ." - #include +DEAL_II_WARNING( + "This file is deprecated. Simply use the corresponding C++11 header .") + #include DEAL_II_NAMESPACE_OPEN namespace std_cxx11 diff --git a/include/deal.II/base/std_cxx11/iterator.h b/include/deal.II/base/std_cxx11/iterator.h index 230f31b2d9..36c56e6ded 100644 --- a/include/deal.II/base/std_cxx11/iterator.h +++ b/include/deal.II/base/std_cxx11/iterator.h @@ -16,11 +16,12 @@ #ifndef dealii_std_cxx11_iterator_h #define dealii_std_cxx11_iterator_h -#warning \ - "This file is deprecated. Simply use the corresponding C++11 header ." - #include +DEAL_II_WARNING( + "This file is deprecated. Simply use the corresponding C++11 header .") + + #include DEAL_II_NAMESPACE_OPEN namespace std_cxx11 diff --git a/include/deal.II/base/std_cxx11/mutex.h b/include/deal.II/base/std_cxx11/mutex.h index 9c87e179da..d7e1a6c29e 100644 --- a/include/deal.II/base/std_cxx11/mutex.h +++ b/include/deal.II/base/std_cxx11/mutex.h @@ -16,11 +16,11 @@ #ifndef dealii_std_cxx11_mutex_h #define dealii_std_cxx11_mutex_h -#warning \ - "This file is deprecated. Simply use the corresponding C++11 header ." - #include +DEAL_II_WARNING( + "This file is deprecated. Simply use the corresponding C++11 header .") + #include DEAL_II_NAMESPACE_OPEN namespace std_cxx11 diff --git a/include/deal.II/base/std_cxx11/shared_ptr.h b/include/deal.II/base/std_cxx11/shared_ptr.h index 36089f472e..5d08fd996f 100644 --- a/include/deal.II/base/std_cxx11/shared_ptr.h +++ b/include/deal.II/base/std_cxx11/shared_ptr.h @@ -16,11 +16,12 @@ #ifndef dealii_std_cxx11_shared_ptr_h #define dealii_std_cxx11_shared_ptr_h -#warning \ - "This file is deprecated. Simply use the corresponding C++11 header ." - #include +DEAL_II_WARNING( + "This file is deprecated. Simply use the corresponding C++11 header .") + + #include DEAL_II_NAMESPACE_OPEN namespace std_cxx11 diff --git a/include/deal.II/base/std_cxx11/thread.h b/include/deal.II/base/std_cxx11/thread.h index cdfb4dd62b..72435db880 100644 --- a/include/deal.II/base/std_cxx11/thread.h +++ b/include/deal.II/base/std_cxx11/thread.h @@ -16,11 +16,11 @@ #ifndef dealii_std_cxx11_thread_h #define dealii_std_cxx11_thread_h -#warning \ - "This file is deprecated. Simply use the corresponding C++11 header ." - #include +DEAL_II_WARNING( + "This file is deprecated. Simply use the corresponding C++11 header .") + #include DEAL_II_NAMESPACE_OPEN namespace std_cxx11 diff --git a/include/deal.II/base/std_cxx11/tuple.h b/include/deal.II/base/std_cxx11/tuple.h index aa2606914f..7134fcbc89 100644 --- a/include/deal.II/base/std_cxx11/tuple.h +++ b/include/deal.II/base/std_cxx11/tuple.h @@ -16,11 +16,11 @@ #ifndef dealii_std_cxx11_tuple_h #define dealii_std_cxx11_tuple_h -#warning \ - "This file is deprecated. Simply use the corresponding C++11 header ." - #include +DEAL_II_WARNING( + "This file is deprecated. Simply use the corresponding C++11 header .") + #include DEAL_II_NAMESPACE_OPEN namespace std_cxx11 diff --git a/include/deal.II/base/std_cxx11/type_traits.h b/include/deal.II/base/std_cxx11/type_traits.h index 297640cd57..df195bc0f2 100644 --- a/include/deal.II/base/std_cxx11/type_traits.h +++ b/include/deal.II/base/std_cxx11/type_traits.h @@ -16,11 +16,12 @@ #ifndef dealii_std_cxx11_type_traits_h #define dealii_std_cxx11_type_traits_h -#warning \ - "This file is deprecated. Simply use the corresponding C++11 header ." - #include +DEAL_II_WARNING( + "This file is deprecated. Simply use the corresponding C++11 header .") + + #include DEAL_II_NAMESPACE_OPEN namespace std_cxx11 diff --git a/include/deal.II/base/std_cxx11/unique_ptr.h b/include/deal.II/base/std_cxx11/unique_ptr.h index d14404cd1a..5f1599b8ed 100644 --- a/include/deal.II/base/std_cxx11/unique_ptr.h +++ b/include/deal.II/base/std_cxx11/unique_ptr.h @@ -17,11 +17,12 @@ #define dealii_std_cxx11_unique_ptr_h -#warning \ - "This file is deprecated. Simply use the corresponding C++11 header ." - #include +DEAL_II_WARNING( + "This file is deprecated. Simply use the corresponding C++11 header .") + + #include DEAL_II_NAMESPACE_OPEN namespace std_cxx11 -- 2.39.5