User Activity

  • Posted a comment on discussion General Discussion on cppcheck

    Great thanks!

  • Posted a comment on discussion General Discussion on cppcheck

    Ah the warning disappears with -I /usr/include/ , assumed for some reason that cppcheck would check /usr/include by default.

  • Posted a comment on discussion General Discussion on cppcheck

    Now this code could be written better (and I will after posting this), but it did expose a false positive in cppcheck (tested with v2.2): size_t added_len = message->data_used - oldpos; if (added_len < 50) { /* line 1186 */ added_len = 50 - added_len; /* line 1187 */ if (added_len > 6) { /* this if is ignored by cppcheck */ added_len -= 5; /* line 1190 */ add_tag (message, tag, oldpos, message->data_used - oldpos); add_tag (message, 0xffffffff, message->data_used, added_len); grow_buffer (message,...

  • Posted a comment on discussion General Discussion on cppcheck

    static inline int num_digits (const uint64_t value) { if (value < __UINT64_C(100000)) { if (value < __UINT64_C(10)) return 1; if (value < __UINT64_C(100)) return 2; if (value < __UINT64_C(1000)) return 3; if (value < __UINT64_C(10000)) return 4; return 5; } if (value < __UINT64_C(10000000000)) { if (value < __UINT64_C(1000000)) return 6; if (value < __UINT64_C(10000000)) return 7; if (value < __UINT64_C(100000000)) return 8; if (value < __UINT64_C(1000000000)) return 9; return 10; } if (value < __UINT64_C(1000000000000000))...

View All

Personal Data

Username:
millihenrik
Joined:
2011-10-16 02:05:43

Projects

  • No projects to display.

Personal Tools