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:
parent
24e80cf8ee
commit
d8be9933e2
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user