• 0 Posts
  • 4 Comments
Joined 3 months ago
cake
Cake day: June 4th, 2025

help-circle

  • Don’t blame this on gcc or the library/function author - it is 100% user (i.e. programmer) error. Uninitialised memory of any type is undefined behaviour in the C and C++ abstract machine. That means optimising compilers can assume it does not exist.

    For example, the compiler could see that your ‘b’ is never initialised. Therefore, using it would be undefined behaviour. So, the optimiser can assume it is never used, and it is as if that code simply does not exist: the behaviour you saw.

    I’m not saying that is what happened, nor that it will always happen, but it is a possibility.



  • zerofk@lemmy.ziptoFediverse@lemmy.worldNSFW on Lemmy
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    1 month ago

    I occasionally see similar complaints, and I’m sure it’s legitimate for some users. But personally I don’t get it. I don’t block NSFW content, and yet I rarely see it in /all. When I do it’s usually a bunch at once, but like I said it doesn’t happen a lot.

    The only thing in /all that used to bother me is the sports stuff, but by blocking a single community that’s mostly gone now.