Fix "-Wignored-attributes" with vector arguments in rtengine/median.h

See [GCC bug 69884](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69884).
This commit is contained in:
Flössie 2016-09-26 21:31:46 +02:00
parent 24e80cf8ee
commit d8be9933e2

View File

@ -24,6 +24,10 @@
#include "opthelper.h" #include "opthelper.h"
#if defined __GNUC__ && __GNUC__>=6 && defined __SSE2__
#pragma GCC diagnostic ignored "-Wignored-attributes"
#endif
template<typename T, std::size_t N> template<typename T, std::size_t N>
inline T median(std::array<T, N> array) inline T median(std::array<T, N> array)
{ {