Is there a way to suppress "unused variables" warnings for a specific file, namespace, or specific variable?
I ask because I have a namespace containing a large list of lambda functions. Some of them are not used right now, but can be used on time. If these were ordinary free functions, I would not have warned if some of them were unused. However, since they are lambdas, I get a stack of compiler warnings.
I want not to use the compiler flag to remove all warnings of this type, as usual, it is very useful that the compiler does not use unused variables. However, a warning stack about unused utility functions adds noise to other useful information.
source
share