/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c: In function ‘mbedtls_strerror’:
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:921:47: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
921 | mbedtls_snprintf( buf, buflen, "%s", high_level_error_description );
| ^
In file included from /home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:29:
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/include/mbedtls/platform.h:76:41: note: ‘snprintf’ output 1 or more bytes (assuming 2) into a destination of size 1
76 | #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< The default \c snprintf function to use. */
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/include/mbedtls/platform.h:243:28: note: in expansion of macro ‘MBEDTLS_PLATFORM_STD_SNPRINTF’
243 | #define mbedtls_snprintf MBEDTLS_PLATFORM_STD_SNPRINTF
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:921:13: note: in expansion of macro ‘mbedtls_snprintf’
921 | mbedtls_snprintf( buf, buflen, "%s", high_level_error_description );
| ^~~~~~~~~~~~~~~~
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:919:46: error: ‘UNKNOWN ERROR CODE (’ directive output truncated writing 20 bytes into a region of size 1 [-Werror=format-truncation=]
919 | mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret );
| ~^~~~~~~~~~~~~~~~~~~
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:919:44: note: directive argument in the range [1, 65408]
919 | mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:29:
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/include/mbedtls/platform.h:76:41: note: ‘snprintf’ output 26 bytes into a destination of size 1
76 | #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< The default \c snprintf function to use. */
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/include/mbedtls/platform.h:243:28: note: in expansion of macro ‘MBEDTLS_PLATFORM_STD_SNPRINTF’
243 | #define mbedtls_snprintf MBEDTLS_PLATFORM_STD_SNPRINTF
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:919:13: note: in expansion of macro ‘mbedtls_snprintf’
919 | mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret );
| ^~~~~~~~~~~~~~~~
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:958:43: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
958 | mbedtls_snprintf( buf, buflen, "%s", low_level_error_description );
| ^
In file included from /home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:29:
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/include/mbedtls/platform.h:76:41: note: ‘snprintf’ output 1 or more bytes (assuming 2) into a destination of size 1
76 | #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< The default \c snprintf function to use. */
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/include/mbedtls/platform.h:243:28: note: in expansion of macro ‘MBEDTLS_PLATFORM_STD_SNPRINTF’
243 | #define mbedtls_snprintf MBEDTLS_PLATFORM_STD_SNPRINTF
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:958:9: note: in expansion of macro ‘mbedtls_snprintf’
958 | mbedtls_snprintf( buf, buflen, "%s", low_level_error_description );
| ^~~~~~~~~~~~~~~~
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:956:42: error: ‘UNKNOWN ERROR CODE (’ directive output truncated writing 20 bytes into a region of size 1 [-Werror=format-truncation=]
956 | mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret );
| ~^~~~~~~~~~~~~~~~~~~
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:956:40: note: directive argument in the range [1, 2147418239]
956 | mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:29:
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/include/mbedtls/platform.h:76:41: note: ‘snprintf’ output between 26 and 30 bytes into a destination of size 1
76 | #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf /**< The default \c snprintf function to use. */
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/include/mbedtls/platform.h:243:28: note: in expansion of macro ‘MBEDTLS_PLATFORM_STD_SNPRINTF’
243 | #define mbedtls_snprintf MBEDTLS_PLATFORM_STD_SNPRINTF
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/emily/src/photon-hue/hueplusplus/lib/mbedtls/library/error.c:956:9: note: in expansion of macro ‘mbedtls_snprintf’
956 | mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret );
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors