diff --git a/include/ext/hash_map b/include/ext/hash_map index 49c8d11c4..b74540be7 100644 --- a/include/ext/hash_map +++ b/include/ext/hash_map @@ -204,7 +204,9 @@ template #include #include +#if __DEPRECATED #warning Use of the header is deprecated. Migrate to +#endif #pragma GCC system_header diff --git a/include/ext/hash_set b/include/ext/hash_set index e205db81c..e20fd41e6 100644 --- a/include/ext/hash_set +++ b/include/ext/hash_set @@ -197,7 +197,9 @@ template #include <__hash_table> #include +#if __DEPRECATED #warning Use of the header is deprecated. Migrate to +#endif namespace __gnu_cxx {