diff options
author | 2022-10-31 12:44:24 +0100 | |
---|---|---|
committer | 2022-12-13 15:42:10 -0700 | |
commit | 2ef9b77e4ecbc4523ecc486644296bd7aeff2f18 (patch) | |
tree | a9e049c8e7a7a5c158640cde07141298d2beaa6a /include | |
parent | net: dsa: tag_8021q: avoid leaking ctx on dsa_tag_8021q_register() error path (diff) | |
download | wireguard-linux-stable.tar.xz wireguard-linux-stable.zip |
Since gcc13, each member of an enum has the same type as the enum. And
that is inherited from its members. Provided "REKEY_AFTER_MESSAGES =
1ULL << 60", the named type is unsigned long.
This generates warnings with gcc-13:
error: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int'
Cast those particular enum members to int when printing them.
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113
Cc: Martin Liska <mliska@suse.cz>
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions