What is the correct way to suppress Xcode's unused function warning for functions in a library header?
For example, I have the following function defined in MathUtils.h:
namespace MathUtils {
static std::complex<double> cis(double x) {
return std::complex<double>(cos(x), sin(x));
}
...
}
Source files which include this header, but don't use this specific function, trigger the warning.
I could add a warning pragma around the function to disable the warning, but that doesn't seem like the right way - this seems like a general issue.