Skip to content
Snippets Groups Projects
Commit 910170ca authored by Bienchen's avatar Bienchen
Browse files

SCHWED-4612: Ignore warning about unused functions by GCC, while the functions...

SCHWED-4612: Ignore warning about unused functions by GCC, while the functions are used by unit tests.
parent 4d1a5f68
Branches
Tags
No related merge requests found
......@@ -32,11 +32,17 @@ namespace {
template<typename T>
void set_val(T& v, Real rv, const Complex& cv);
/* While the functions below are employed by the OST unit tests, GCC does not
notice this and complains about "unused functions".
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
template<>
void set_val<Real>(Real& v, Real rv, const Complex& cv) {v=rv;}
template<>
void set_val<Complex>(Complex& v, Real rv, const Complex& cv) {v=cv;}
#pragma GCC diagnostic pop
template<typename T>
void set_val(T& v, Real rv, const Complex& cv)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment