libsmb2 icon indicating copy to clipboard operation
libsmb2 copied to clipboard

Fail to build with error "with mismatched bound"

Open marillat opened this issue 3 years ago • 0 comments

Debian unstable amd64 GCC 11.2.0

make[2]: Entering directory '/home/marillat/src/libsmb2-4.0.0/lib'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I/home/marillat/src/libsmb2-4.0.0/include -I/home/marillat/src/libsmb2-4.0.0/include/smb2 "-D_U_=__attribute__((unused))" -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wshadow -Wno-write-strings -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wno-strict-aliasing -Werror -g -O2 -ffile-prefix-map=/home/marillat/src/libsmb2-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -D_FILE_OFFSET_BITS=64 -c -o libsmb2_la-sha224-256.lo `test -f 'sha224-256.c' || echo './'`sha224-256.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/home/marillat/src/libsmb2-4.0.0/include -I/home/marillat/src/libsmb2-4.0.0/include/smb2 "-D_U_=__attribute__((unused))" -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wshadow -Wno-write-strings -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wno-strict-aliasing -Werror -g -O2 -ffile-prefix-map=/home/marillat/src/libsmb2-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -D_FILE_OFFSET_BITS=64 -c sha224-256.c  -fPIC -DPIC -o .libs/libsmb2_la-sha224-256.o
sha224-256.c:341:48: error: argument 2 of type 'uint8_t[]' {aka 'unsigned char[]'} with mismatched bound [-Werror=array-parameter=]
  341 | SHA256Result (SHA256Context * context, uint8_t Message_Digest[])
      |                                        ~~~~~~~~^~~~~~~~~~~~~~~~
In file included from sha224-256.c:41:
sha.h:270:34: note: previously declared as 'uint8_t[32]' {aka 'unsigned char[32]'}
  270 |                          uint8_t Message_Digest[SHA256HashSize]);
      |                          ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

marillat avatar Jan 17 '22 07:01 marillat