Skip to content

Instantly share code, notes, and snippets.

@daniloegea
Created December 8, 2018 21:44
Show Gist options
  • Save daniloegea/3858685358f64104b7bbe4cad6005dd7 to your computer and use it in GitHub Desktop.
Save daniloegea/3858685358f64104b7bbe4cad6005dd7 to your computer and use it in GitHub Desktop.
build aws-c-event-stream
[ 9%] Building C object CMakeFiles/aws-c-event-stream.dir/source/event_stream.c.o
/tmp/aws-c-event-stream/source/event_stream.c:156:31: error: incompatible pointer to integer conversion passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'uint16_t' (aka 'unsigned short') [-Werror,-Wint-conversion]
aws_write_u16(buffer_alias, header->header_value_len);
^~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:154:45: note: passing argument to parameter 'value' here
AWS_STATIC_IMPL void aws_write_u16(uint16_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:156:45: error: incompatible integer to pointer conversion passing 'uint16_t' (aka 'unsigned short') to parameter of type 'uint8_t *' (aka 'unsigned char *') [-Werror,-Wint-conversion]
aws_write_u16(buffer_alias, header->header_value_len);
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:154:61: note: passing argument to parameter 'buffer' here
AWS_STATIC_IMPL void aws_write_u16(uint16_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:280:23: error: incompatible pointer to integer conversion passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'uint32_t' (aka 'unsigned int') [-Werror,-Wint-conversion]
aws_write_u32(message->message_buffer, total_length);
^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:110:45: note: passing argument to parameter 'value' here
AWS_STATIC_IMPL void aws_write_u32(uint32_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:280:48: error: incompatible integer to pointer conversion passing 'uint32_t' (aka 'unsigned int') to parameter of type 'uint8_t *' (aka 'unsigned char *') [-Werror,-Wint-conversion]
aws_write_u32(message->message_buffer, total_length);
^~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:110:61: note: passing argument to parameter 'buffer' here
AWS_STATIC_IMPL void aws_write_u32(uint32_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:282:23: error: incompatible pointer to integer conversion passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'uint32_t' (aka 'unsigned int') [-Werror,-Wint-conversion]
aws_write_u32(buffer_offset, headers_length);
^~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:110:45: note: passing argument to parameter 'value' here
AWS_STATIC_IMPL void aws_write_u32(uint32_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:282:38: error: incompatible integer to pointer conversion passing 'uint32_t' (aka 'unsigned int') to parameter of type 'uint8_t *' (aka 'unsigned char *') [-Werror,-Wint-conversion]
aws_write_u32(buffer_offset, headers_length);
^~~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:110:61: note: passing argument to parameter 'buffer' here
AWS_STATIC_IMPL void aws_write_u32(uint32_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:289:23: error: incompatible pointer to integer conversion passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'uint32_t' (aka 'unsigned int') [-Werror,-Wint-conversion]
aws_write_u32(buffer_offset, running_crc);
^~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:110:45: note: passing argument to parameter 'value' here
AWS_STATIC_IMPL void aws_write_u32(uint32_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:289:38: error: incompatible integer to pointer conversion passing 'uint32_t' (aka 'unsigned int') to parameter of type 'uint8_t *' (aka 'unsigned char *') [-Werror,-Wint-conversion]
aws_write_u32(buffer_offset, running_crc);
^~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:110:61: note: passing argument to parameter 'buffer' here
AWS_STATIC_IMPL void aws_write_u32(uint32_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:303:23: error: incompatible pointer to integer conversion passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'uint32_t' (aka 'unsigned int') [-Werror,-Wint-conversion]
aws_write_u32(buffer_offset, running_crc);
^~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:110:45: note: passing argument to parameter 'value' here
AWS_STATIC_IMPL void aws_write_u32(uint32_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:303:38: error: incompatible integer to pointer conversion passing 'uint32_t' (aka 'unsigned int') to parameter of type 'uint8_t *' (aka 'unsigned char *') [-Werror,-Wint-conversion]
aws_write_u32(buffer_offset, running_crc);
^~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:110:61: note: passing argument to parameter 'buffer' here
AWS_STATIC_IMPL void aws_write_u32(uint32_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:504:35: error: incompatible pointer types passing 'struct aws_byte_buf *' to parameter of type 'const struct aws_byte_cursor *' [-Werror,-Wincompatible-pointer-types]
aws_base64_encode(&to_encode, &encode_output);
^~~~~~~~~~
/usr/local/include/aws/common/encoding.h:69:66: note: passing argument to parameter 'to_encode' here
int aws_base64_encode(const struct aws_byte_cursor *AWS_RESTRICT to_encode, struct aws_byte_buf *AWS_RESTRICT output);
^
/tmp/aws-c-event-stream/source/event_stream.c:508:35: error: incompatible pointer types passing 'struct aws_byte_buf *' to parameter of type 'const struct aws_byte_cursor *' [-Werror,-Wincompatible-pointer-types]
aws_base64_encode(&to_encode, &encode_output);
^~~~~~~~~~
/usr/local/include/aws/common/encoding.h:69:66: note: passing argument to parameter 'to_encode' here
int aws_base64_encode(const struct aws_byte_cursor *AWS_RESTRICT to_encode, struct aws_byte_buf *AWS_RESTRICT output);
^
/tmp/aws-c-event-stream/source/event_stream.c:539:23: error: incompatible pointer types passing 'struct aws_byte_buf *' to parameter of type 'const struct aws_byte_cursor *' [-Werror,-Wincompatible-pointer-types]
aws_base64_encode(&payload_buffer, &encoded_payload_buffer);
^~~~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:69:66: note: passing argument to parameter 'to_encode' here
int aws_base64_encode(const struct aws_byte_cursor *AWS_RESTRICT to_encode, struct aws_byte_buf *AWS_RESTRICT output);
^
/tmp/aws-c-event-stream/source/event_stream.c:655:19: error: incompatible pointer to integer conversion passing 'uint8_t [16]' to parameter of type 'uint16_t' (aka 'unsigned short') [-Werror,-Wint-conversion]
aws_write_u16(header.header_value.static_val, (uint16_t)value);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:154:45: note: passing argument to parameter 'value' here
AWS_STATIC_IMPL void aws_write_u16(uint16_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:655:51: error: incompatible integer to pointer conversion passing 'uint16_t' (aka 'unsigned short') to parameter of type 'uint8_t *' (aka 'unsigned char *') [-Werror,-Wint-conversion]
aws_write_u16(header.header_value.static_val, (uint16_t)value);
^~~~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:154:61: note: passing argument to parameter 'buffer' here
AWS_STATIC_IMPL void aws_write_u16(uint16_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:673:19: error: incompatible pointer to integer conversion passing 'uint8_t [16]' to parameter of type 'uint32_t' (aka 'unsigned int') [-Werror,-Wint-conversion]
aws_write_u32(header.header_value.static_val, (uint32_t)value);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:110:45: note: passing argument to parameter 'value' here
AWS_STATIC_IMPL void aws_write_u32(uint32_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:673:51: error: incompatible integer to pointer conversion passing 'uint32_t' (aka 'unsigned int') to parameter of type 'uint8_t *' (aka 'unsigned char *') [-Werror,-Wint-conversion]
aws_write_u32(header.header_value.static_val, (uint32_t)value);
^~~~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:110:61: note: passing argument to parameter 'buffer' here
AWS_STATIC_IMPL void aws_write_u32(uint32_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:691:19: error: incompatible pointer to integer conversion passing 'uint8_t [16]' to parameter of type 'uint64_t' (aka 'unsigned long') [-Werror,-Wint-conversion]
aws_write_u64(header.header_value.static_val, (uint64_t)value);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:89:45: note: passing argument to parameter 'value' here
AWS_STATIC_IMPL void aws_write_u64(uint64_t value, uint8_t *buffer) {
^
/tmp/aws-c-event-stream/source/event_stream.c:691:51: error: incompatible integer to pointer conversion passing 'uint64_t' (aka 'unsigned long') to parameter of type 'uint8_t *' (aka 'unsigned char *') [-Werror,-Wint-conversion]
aws_write_u64(header.header_value.static_val, (uint64_t)value);
^~~~~~~~~~~~~~~
/usr/local/include/aws/common/encoding.h:89:61: note: passing argument to parameter 'buffer' here
AWS_STATIC_IMPL void aws_write_u64(uint64_t value, uint8_t *buffer) {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** Error code 1
Stop.
make[2]: stopped in /tmp/aws-c-event-stream
*** Error code 1
Stop.
make[1]: stopped in /tmp/aws-c-event-stream
*** Error code 1
Stop.
make: stopped in /tmp/aws-c-event-stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment