Re:Using signed or unsigned int by default in C (2015)
by FartyMcFarter on Thursday August 25, 2022 @08:04AM
(#32592558)
I had forgotten about that one - that's a great solution, and I agree that in most programs unsigned overflow is rarely desirable, so explicit annotation makes sense for those cases.
I would tend to say this is a good practice to enable it, because the number of times where you rely on the overflow should be very low and well documented.