Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Warnings in compilation 4 #6

Open
skinkie opened this issue Jun 7, 2014 · 1 comment
Open

Warnings in compilation 4 #6

skinkie opened this issue Jun 7, 2014 · 1 comment

Comments

@skinkie
Copy link

skinkie commented Jun 7, 2014

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
@kylemanna
Copy link

Fixed in #10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants