hercules-team / augeas

A configuration editing tool and API
http://augeas.net/
GNU Lesser General Public License v2.1
486 stars 199 forks source link

Fix gcc warnings #842

Closed rwmjones closed 3 months ago

rwmjones commented 3 months ago

Fix miscellaneous GCC warnings. In particular this causes the compile to fail when using configure --enable-compile-warnings=error and using a recent version of GCC.

tupyy commented 3 months ago

LGTM

georgehansper commented 3 months ago

Thanks for these fixes, @rwmjones I completely missed the fact the the args to reallocarray() in augprint.c were back-to-front