Avoid warning using std::stable_sort() from gcc/clang

This commit is contained in:
David Capello 2025-04-22 22:10:23 -03:00
parent aca46a28c5
commit 600882352e
1 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,12 @@
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#if defined(__GNUC__) || defined(__clang__)
// To avoid deprecated warning on gcc/clang using
// std::get_temporary_buffer() from std::stable_sort()
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif