AlmightySnoo 🐢🇮🇱🇺🇦

Yoko, Shinobu ni, eto… 🤔

עַם יִשְׂרָאֵל חַי Slava Ukraini 🇺🇦 ❤️ 🇮🇱

  • 53 Posts
  • 160 Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle


















  • For the catching bugs part, I’m wondering whether some of those (like _GLIBCXX_ASSERTIONS and _LIBCPP_HARDENING_MODE_EXTENSIVE) would be redundant if one already runs e.g. Clang Static Analyzer or GCC’s -fanalyzer?

    For instance, this one is caught without any issues when compiling with gcc -fanalyzer -O1:

    #include <memory> // "less than" and "greater than" signs getting filtered by Lemmy 0.18.5...
    
    int main() {
        auto p = std::make_shared(42);
        p.reset(p.get()); // Incorrect use of reset
    }