Project

General

Profile

Actions

Bug #3129

closed

Fixes warning about size of integers in string formats (4.1.x)

Added by Victor Julien about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Found by compiler Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Example :

decode-icmpv4.c:88:55: warning: format specifies type 'unsigned char' but the argument has type 'uint16_t' (aka 'unsigned short') [-Wformat]
                           "%"PRIu8" dport %"PRIu8"", p->icmpv4vars.emb_sport,


Related issues 1 (0 open1 closed)

Copied from Suricata - Bug #3009: Fixes warning about size of integers in string formatsClosedPhilippe AntoineActions
Actions

Also available in: Atom PDF