#2411 closed defect (fixed)

dumpbuf.c compiles with warnings

Reported by: Martin Galvan Owned by: Martin Galvan <martin.galvan@…>
Priority: normal Milestone: 4.11.1
Component: unspecified Version: 4.10
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

Compiling dumpbuf.c causes the following warning to be issued multiple times:

warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]

This seems to happen because line_buffer is declared as unsigned.

Change History (2)

comment:1 Changed on Sep 3, 2015 at 9:09:14 PM by Martin Galvan <martin.galvan@…>

Owner: set to Martin Galvan <martin.galvan@…>
Resolution: fixed
Status: newclosed

In 41b5c915e3b494a30bf73f82b03a77bc04388b29/rtems:

cpukit/libmisc/dumpbuf/dumpbuf.c: Fix compilation warnings

Compiling dumpbuf.c causes the following warning to be issued:

warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]

This happens because line_buffer is declared as unsigned.

Closes #2411.

comment:2 Changed on Sep 3, 2015 at 9:09:32 PM by Martin Galvan <martin.galvan@…>

In ccebc571d447537208d2a861aa2ff0cf339839a7/rtems:

cpukit/libmisc/dumpbuf/dumpbuf.c: Fix compilation warnings

Compiling dumpbuf.c causes the following warning to be issued:

warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]

This happens because line_buffer is declared as unsigned.

Closes #2411.

Note: See TracTickets for help on using tickets.