Activity for Jarkko Hietaniemi

  • Jarkko Hietaniemi Jarkko Hietaniemi posted a comment on discussion Help

    For those who find this thread in the future, to be absolutely precise, for the cu parameter, you want e.g. 7z a -r -mcu=on out.zip files ... The switches help text doesn't mention the cu parameter, at least not with 7-Zip 17.04. which I happen to have. Related tidbit I found while searching for this: the macos APFS filesystem creates Unicode files in the NFD format, as opposed to Windows which uses NFC (in NTFS). For example, if the character is 'รค' or U+00E4: with NFD that is decomposed (the D...

  • Jarkko Hietaniemi Jarkko Hietaniemi posted a comment on discussion Development

    orbitcowboy wrote: Did you use " --library=posix", at commandline? It should provide information of fdopen to Cppcheck. Ah, no I did not. I wasn't aware of this option. With that, cppcheck does correctly flag that use of fdopen. Thanks! Now I need to figure out how to pass that flag to cppcheck when I am using the Emacs flycheck-mode (that's how I usually interface with cppcheck). fopen leak detected, fdopen leak not detected (cppcheck 2.5.1) https://sourceforge.net/p/cppcheck/discussion/development/thread/e459fa478c/?limit=25#fe1f...

  • Jarkko Hietaniemi Jarkko Hietaniemi posted a comment on discussion Development

    $ cat leak-fp.c #include <stdio.h> void leak_fp_fopen(char *fn) { fopen(fn, "r"); } void leak_fp_fdopen(FILE *fp) { fdopen(fileno(fp), "r"); } $ cppcheck leak-fp.c /Users/jhi/leak-fp.c:4:5: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] fopen(fn, "r"); ^ $ cppcheck --version Cppcheck 2.5

  • Jarkko Hietaniemi Jarkko Hietaniemi posted a comment on ticket #125

    Ah, duh. Consider this feature request already fulfilled, then.

  • Jarkko Hietaniemi Jarkko Hietaniemi created ticket #125

    verbosity control: show iff file changed

1