summaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <jirislaby@kernel.org>2022-12-13 15:52:08 -0700
committerJakub Kicinski <kuba@kernel.org>2022-12-13 19:30:45 -0800
commit2d4ee16d969c97996e80e4c9cb6de0acaff22c9f (patch)
treea6250347a64757a38e5feaf7fddfdd6b7932f1f0 /Documentation/networking
parentde5dc44370fbd6b46bd7f1a1e00369be54a041c8 (diff)
downloadlinux-2d4ee16d969c97996e80e4c9cb6de0acaff22c9f.tar.bz2
wireguard: timers: cast enum limits members to int in prints
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> Link: https://lore.kernel.org/all/20221213225208.3343692-2-Jason@zx2c4.com/ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/networking')
0 files changed, 0 insertions, 0 deletions