algo-gate-api.c:156: error: #pragma GCC diagnostic not allowed inside functions
algo-gate-api.c:157: error: #pragma GCC diagnostic not allowed inside functions
Old compiler, edit the file to move those lines (and the third one further below) so they are not
inside the function.
Sorry I'm a novice. Which file - and which three lines - and move them where?
Many thanks
Ok I see 'algo-gate-api.c' is a file and the numbers are line numbers. So what do I do to fix this section?
A few lines before the first errors and a few lines after the last one are the boundaries of the function.
It should look like this.
// Ignore warnings for not yet defined register functions
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-function-declaration"
// called by each thread that uses the gate
bool register_algo_gate( int algo, algo_gate_t *gate )
{
...
return true;
}
// restore warnings
#pragma GCC diagnostic pop