From d84b92cec2f7e754c8d7e9ef65f5c2c7dc8fa923 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Sat, 9 Dec 2023 18:04:55 +0000 Subject: [PATCH] document UNUSED macro --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e98b321..fdb6d2b 100644 --- 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: