#15188 (moved) fixed one instance, we should make sure there aren't more. Assignments are clearly bad, function calls are potentially bad. Anything else I'm looking for?
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
This is a cool thing to do, but let's remember it isn't critical: The tor source doesn't let you define NDEBUG, so we don't need to worry about assertions getting eliminated. This is a style issue, not a safety issue.
Hmn. Is this actually making the code better? Second opinions welcome. I wonder if instead we shouldn't define a replacement for tor_assert that explicitly allows side-effects.
My two cents. This makes the code better for the following reasons thus I ack Sebastian patch.
Readability which is important as more and more contributors start looking/using the code. I myself doesn't expect function calls in an assert() because they can't be removed (not in the case of tor though). It's just not something you expect in C code imo.
Maintainability over time, keep the code consistent which often is the starting point for new contributors to look at the code to understand the coding style before submitting a patch (yes not always the case, I know).
I absolutely agree, this is not critical but the change is trivial and useful imo. Probably the change file could be "Coding style" instead of "bugfix" because no bug is fixed here.