Results 265 comments of NRK

> union isn't considered safe until C99. Hi, C11 adds following footnote (95) regarding type punning through unions. I don't see anything similar in C99, so it's probably unsafe in...

The main issue here is the fact that `gcc` will error out on c++ style comments when using `-std=c89`. `clang` let's you go with a warning, `tcc` doesn't care, don't...

> AFAIK, gcc errors out completely because it's against the spec, not because it could actually cause any problems. Not to derail this issue, but off the top of my...

> I just installed cppcheck on a Ubuntu VM and got _none_ of these warnings on stb_image, not even a single one. Is there any special options I need to...

> It may be an issue with clang. I'm on clang 13.0.0 on GNU/Linux and can't reproduce it. Could be windows related as well.

> Or is there somebody, who could care about conservative bound? I haven't looked too deeply into this, but my 2c on this is that the allocation size itself might...

I was just pointing one some suspects, wasn't a suggestion. From my point of view, aka someone who doesn't know what the code is doing or what the "correct" output...

Hi, I would suggest NOT using `memset()` and instead using `s = { ZERO_INIT };` where `ZERO_INIT` is ```c #ifdef __cplusplus #define ZERO_INIT #else #define ZERO_INIT 0 #endif ``` In...

@nothings Yes I am aware. That was a suggestion to the users rather. Implicit zero initialization is a pretty well defined behavior in C and from my experience that warning...

That's fine by me, I can update the PR to use memset() if that's what you prefer. I suggested the ZERO_INIT way since it puts the declaration and initialization in...