simon-git: pix (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Sat Sep 3 13:25:25 BST 2016
TL;DR:
38c9e01 Fix a couple of harmless clang warnings.
c5c91e2 Fix a less harmless clang warning.
9c9e350 Function to parse an integer, permitting negative values.
Repository: git://git.tartarus.org/simon/pix.git
On the web: http://tartarus.org/~simon-git/gitweb/?p=pix.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2016-09-03 13:25:25
commit 38c9e01d9764eccf6c752a517cc84df06ddcd13b
web diff http://tartarus.org/~simon-git/gitweb/?p=pix.git;a=commitdiff;h=38c9e01d9764eccf6c752a517cc84df06ddcd13b;hp=aed63397b3cb810f2e40e032d67327072aaa26ea
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Sep 3 11:56:23 2016 +0100
Fix a couple of harmless clang warnings.
An unused static array definition (we don't currently permit any
configuration option to output a non-interlaced PNG), and a deliberate
empty loop body that clang wanted to be reassured _was_ deliberate.
deflate.c | 3 ++-
pngout.c | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
commit c5c91e2a8c00d0585824db2eafdcacd57664e26c
web diff http://tartarus.org/~simon-git/gitweb/?p=pix.git;a=commitdiff;h=c5c91e2a8c00d0585824db2eafdcacd57664e26c;hp=38c9e01d9764eccf6c752a517cc84df06ddcd13b
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Sep 3 11:57:04 2016 +0100
Fix a less harmless clang warning.
Replaced calls to abs(unsigned) with a subroutine that actually does
what I meant, which is logically 'convert to signed integer and then
take the abs of that'.
pngout.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
commit 9c9e350758eb870bbb30395c3a3968fe80f0bb75
web diff http://tartarus.org/~simon-git/gitweb/?p=pix.git;a=commitdiff;h=9c9e350758eb870bbb30395c3a3968fe80f0bb75;hp=c5c91e2a8c00d0585824db2eafdcacd57664e26c
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Sep 3 12:20:02 2016 +0100
Function to parse an integer, permitting negative values.
parseint() in cmdline.c returns in a signed _type_, but enforces that
its input string is composed entirely of digits, so it doesn't permit
negative values. parsesignedint() does.
(I don't currently have a use for that feature in this code base, but
I'm reusing cmdline.c on an informal basis elsewhere.)
cmdline.c | 17 +++++++++++++++++
cmdline.h | 1 +
2 files changed, 18 insertions(+)
More information about the tartarus-commits
mailing list