Project

General

Profile

Actions

Bug #14388

open

des: with mismatched bound

Added by Toomas Soome 9 days ago. Updated 9 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build errors with gcc 11:

    ../../../common/crypto/des/des_impl.c:503:53: error: argument 2 of type 'const uint8_t[8]' {aka 'const unsigned char[8]'} with mismatched bound [-Werror=array-parameter=]
      503 | des3_crunch_block(const void *cookie, const uint8_t block[DES_BLOCK_LEN],
          |                                       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
    In file included from ../../../common/crypto/des/des_impl.c:34:
    ../../../common/crypto/des/des_impl.h:94:44: note: previously declared as 'const uint8_t *' {aka 'const unsigned char *'}
       94 | extern int des3_crunch_block(const void *, const uint8_t *, uint8_t *,
          |                                            ^~~~~~~~~~~~~~~
    ../../../common/crypto/des/des_impl.c:504:13: error: argument 3 of type 'uint8_t[8]' {aka 'unsigned char[8]'} with mismatched bound [-Werror=array-parameter=]
      504 |     uint8_t out_block[DES_BLOCK_LEN], boolean_t decrypt)
          |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from ../../../common/crypto/des/des_impl.c:34:
    ../../../common/crypto/des/des_impl.h:94:61: note: previously declared as 'uint8_t *' {aka 'unsigned char *'}
       94 | extern int des3_crunch_block(const void *, const uint8_t *, uint8_t *,
          |                                                             ^~~~~~~~~
    ../../../common/crypto/des/des_impl.c:562:52: error: argument 2 of type 'const uint8_t[8]' {aka 'const unsigned char[8]'} with mismatched bound [-Werror=array-parameter=]
      562 | des_crunch_block(const void *cookie, const uint8_t block[DES_BLOCK_LEN],
          |                                      ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
    In file included from ../../../common/crypto/des/des_impl.c:34:
    ../../../common/crypto/des/des_impl.h:92:43: note: previously declared as 'const uint8_t *' {aka 'const unsigned char *'}
       92 | extern int des_crunch_block(const void *, const uint8_t *, uint8_t *,
          |                                           ^~~~~~~~~~~~~~~
    ../../../common/crypto/des/des_impl.c:563:13: error: argument 3 of type 'uint8_t[8]' {aka 'unsigned char[8]'} with mismatched bound [-Werror=array-parameter=]
      563 |     uint8_t out_block[DES_BLOCK_LEN], boolean_t decrypt)
          |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from ../../../common/crypto/des/des_impl.c:34:
    ../../../common/crypto/des/des_impl.h:92:60: note: previously declared as 'uint8_t *' {aka 'unsigned char *'}
       92 | extern int des_crunch_block(const void *, const uint8_t *, uint8_t *,
          |                                                            ^~~~~~~~~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk 9 days ago

  • Gerrit CR set to 1936
Actions

Also available in: Atom PDF