Commit graph

7 commits

Author SHA1 Message Date
Con Kolivas d78c3bbd7a models is array of chars. char's signess is implementation specific.
It's unsigned on ARMv7. Unsigned char cannot represent negative values.
GCC 6 complains about it:

    narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]

This can be reproduced with older GCC or by:

   ./configure CXXFLAGS='-Wnarrowing -funsigned-char'

This patch casts the negative values explicitly because changing the
type to signed char[] would change prototypes of public methods.

Signed-off-by: Petr Písař <ppisar@redhat.com>
2016-06-09 15:25:49 +10:00
Con Kolivas a9fadeec1c Fix libzpaq.cpp warnings 2015-03-10 21:29:04 +11:00
Con Kolivas e962197cbf Fix EOL to unix on libzpaq 2015-03-10 18:23:00 +11:00
Con Kolivas 745c2e2352 Fix other non-win32 compilation for libzpaq. 2012-07-07 22:17:00 +10:00
Con Kolivas ee08f310da Fix libzpaq compilation on other non-win32 OSs. 2012-07-07 22:13:15 +10:00
Con Kolivas dd89bdcf3e Add minimal libzpaq compilation support. 2012-03-16 08:59:04 +11:00
Con Kolivas 63229baed6 Move to libzpaq directory. 2012-03-15 22:38:58 +11:00
Renamed from libzpaq501/libzpaq.cpp (Browse further)