]> git.kaiwu.me - klib.git/commit
Silence -Wstrict-prototypes and static analyser warnings
authorJohn Marshall <jm18@sanger.ac.uk>
Wed, 9 Apr 2014 12:40:34 +0000 (13:40 +0100)
committerJohn Marshall <jm18@sanger.ac.uk>
Wed, 9 Apr 2014 12:40:34 +0000 (13:40 +0100)
commitf79c9162ee00a5d123ad8096b1143dd071dd0578
treee8698f48d67d3b2254b1c9e9a2c92fa90cae70c6
parent2818c5c5acd53470b0fd8593dcd16c3c52424072
Silence -Wstrict-prototypes and static analyser warnings

Using "(void)" provides an explicit there-are-no-arguments prototype.
Using the exact type in "malloc(...sizeof)" is clearer and silences
warnings from clang's static analyzer.
klist.h