]> Savannah Git Hosting - gnulib.git/commit
quotearg: pacify GCC better
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Dec 2016 17:53:45 +0000 (09:53 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Dec 2016 18:19:48 +0000 (10:19 -0800)
commitcb4e027f61170badd1d856a60a1c02a01edf3bda
tree750ed68b1630a3f07ef930f919dd6ddfc65e1a24
parentf3b846699de69b8e6a508396f7f778eb1e917a47
quotearg: pacify GCC better

* modules/quotearg (Depends-on): Add minmax, stdint.
* lib/quotearg.c: Include minmax.h, stdint.h.
(nslots): Now int, as there seems little point to going to extra
work merely to support the INT_MAX slot, which nobody ever uses.
(quotearg_n_options): Redo size-overflow checks to pacify GCC
and to catch (mostly-theoretical) ptrdiff_t problems too.
This can be done via one comparison.
ChangeLog
lib/quotearg.c
modules/quotearg