commit d84b92cec2f7e754c8d7e9ef65f5c2c7dc8fa923
parent 272d17473da339a2c9f82215e3cd37d1e8c32951
Author: NunoSempere <nuno.sempere@protonmail.com>
Date: Sat, 9 Dec 2023 18:04:55 +0000
document UNUSED macro
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
@@ -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: