document UNUSED macro

This commit is contained in:
NunoSempere 2023-12-09 18:04:55 +00:00
parent 272d17473d
commit d84b92cec2

View File

@ -280,7 +280,13 @@ Overall, I would caution that if you really care about the very far tails of dis
In fact, squiggle.c does have a few functions for algebraic manipulations of simple distributions at the end of squiggle.c. But these are pretty rudimentary, and I don't know whether I'll end up expanding or deleting them.
### Results of running clang-tidy
### Compiler warnings
#### Harsh compilation
By default, I've enabled -Warn-all, -Warn-extra. However, these produce warnings for unused variables, some of which can sometimes be inocuous. For now, I'm suppressing these using a clever UNUSED macro. If you don't like that approach, you could add -Wno-unused-variable to your makefile and remove the macro.
#### Results of running clang-tidy
clang-tidy is a utility to detect common errors in C/C++. You can run it with: