PaulStoffregen
Well-known member
One compiler warning I can't find a way to solve is this line in TeensyThreads Tests example:
Of course this gives an ununsed variable warning.
Adding the usual "__attribute__((used))" just replaces it with a warning that the attribute is ignored. Apparently it can't be used on local variables with gcc 11.3.1.
Does anyone an idea of what to do about this one?
Code:
char x[128]; // use up some stack space
Of course this gives an ununsed variable warning.
Adding the usual "__attribute__((used))" just replaces it with a warning that the attribute is ignored. Apparently it can't be used on local variables with gcc 11.3.1.
Does anyone an idea of what to do about this one?