Package: mimetic / 0.9.8-10

Metadata

Package Version Patches format
mimetic 0.9.8-10 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
signed char.patch | (download)

mimetic/codec/base64.cxx | 2 1 + 1 - 0 !
mimetic/codec/base64.h | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 fix ftbfs on architectures where char is unsigned
 Fix error
   base64.cxx:30:1: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]
 by making Base64::sDecTable a signed char.
Bug-Debian: https://bugs.debian.org/859963
g++ 11.patch | (download)

mimetic/os/mmfile.cxx | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix build failure with gcc-11
  The failure:
  .
  mmfile.cxx: In member function ‘bool mimetic::MMFile::map()’:
  mmfile.cxx:60:14: error: ordered comparison of pointer with integer zero (‘char*’ and ‘int’)
     60 |     if(m_beg > 0)
        |        ~~~~~~^~~
  .
  https://gcc.gnu.org/gcc-11/porting_to.html says:
  .
  GCC 11 now issues a diagnostic for ordered comparisons of pointers against
  constant integers. Commonly this is an ordered comparison against NULL or
  0. These should be equality comparisons, not ordered comparisons.