0008-fix-type-conversion.patch 812 B

12345678910111213141516171819202122
  1. Fix type conversion
  2. Fixes the following build error with gcc 6.x:
  3. protocol.cc:27:40: error: narrowing conversion of ''\37777777776'' from 'char' to 'uchar {aka unsigned char}' inside { } [-Wnarrowing]
  4. static uchar eof_buff[1]= { (char) 254 }; /* Marker for end of fields */
  5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. Index: b/server-tools/instance-manager/protocol.cc
  7. ===================================================================
  8. --- a/server-tools/instance-manager/protocol.cc
  9. +++ b/server-tools/instance-manager/protocol.cc
  10. @@ -24,7 +24,7 @@
  11. #include <m_string.h>
  12. -static uchar eof_buff[1]= { (char) 254 }; /* Marker for end of fields */
  13. +static uchar eof_buff[1]= { (uchar) 254 }; /* Marker for end of fields */
  14. static const char ERROR_PACKET_CODE= (char) 255;