This repository was archived by the owner on Nov 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
This repository was archived by the owner on Nov 4, 2023. It is now read-only.
Warnings in compilation 4 #6
Copy link
Copy link
Open
Description
g++ -g -Wall -Werror -I. -I../gtest/include -o capn-test.o -c capn-test.cpp
In file included from capn-test.cpp:6:0:
capn.c: In function ‘uint64_t lookup_double(capn_segment**, char**, uint64_t)’:
capn.c:242:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
capn.c: In function ‘uint64_t lookup_far(capn_segment**, char**, uint64_t)’:
capn.c:275:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
capn.c: In function ‘int copy_ptr(capn_segment*, char*, capn_ptr*, capn_ptr*, int*)’:
capn.c:669:41: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
In file included from capn-test.cpp:7:0:
capn-malloc.c: In function ‘int read_fp(void*, size_t, FILE*, capn_stream*, uint8_t*, int)’:
capn-malloc.c:83:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
capn-malloc.c: In function ‘int capn_write_mem(capn*, uint8_t*, size_t, int)’:
capn-malloc.c:195:37: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
capn-malloc.c:211:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
capn-test.cpp: In function ‘void getSegments(capn*, capn_segment**, size_t)’:
capn-test.cpp:280:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
capn-test.cpp:284:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
capn-test.cpp: In member function ‘virtual void WireFormat_StructRoundTrip_OneSegmentPerAllocation_Test::TestBody()’:
capn-test.cpp:321:58: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
capn-test.cpp: In member function ‘virtual void WireFormat_StructRoundTrip_OneSegmentPerAllocation_NoTag_Test::TestBody()’:
capn-test.cpp:377:58: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
capn-test.cpp: In member function ‘virtual void WireFormat_StructRoundTrip_MultipleSegmentsWithMultipleAllocations_Test::TestBody()’:
capn-test.cpp:427:58: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
cc1plus: all warnings being treated as errors
Makefile:25: recipe for target 'capn-test.o' failed
Metadata
Metadata
Assignees
Labels
No labels