Opened 3 years ago

Closed 3 years ago

#19682 closed defect (fixed)

--enable-fatal-warnings + test_util_format.c

Reported by: cypherpunks Owned by: nickm
Priority: Medium Milestone: Tor: 0.2.8.x-final
Component: Core Tor Version: Tor: unspecified
Severity: Normal Keywords: TorCoreTeam201607
Cc: Actual Points: 0
Parent ID: Points:
Reviewer: Sponsor:

Description

CC src/test/src_test_test-test_util_format.o

src/test/test_util_format.c:109:13: error: implicit conversion from 'int' to

'char' changes value from 255 to -1 [-Werror,-Wconstant-conversion]

src[50] = 255;

~

src/test/test_util_format.c:110:13: error: implicit conversion from 'int' to

'char' changes value from 255 to -1 [-Werror,-Wconstant-conversion]

src[51] = 255;

~

src/test/test_util_format.c:111:13: error: implicit conversion from 'int' to

'char' changes value from 255 to -1 [-Werror,-Wconstant-conversion]

src[52] = 255;

~

src/test/test_util_format.c:112:13: error: implicit conversion from 'int' to

'char' changes value from 255 to -1 [-Werror,-Wconstant-conversion]

src[53] = 255;

~

4 errors generated.

Child Tickets

Change History (2)

comment:1 Changed 3 years ago by nickm

Actual Points: 0
Keywords: TorCoreTeam201607 added
Milestone: Tor: 0.2.8.x-final
Owner: set to nickm
Status: newaccepted

Fixed in bec4e41f4b48c288613a13021da9a29d5fb1ecac!

comment:2 Changed 3 years ago by nickm

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.