benmargolin / protobuf-embedded-c

Automatically exported from code.google.com/p/protobuf-embedded-c
0 stars 0 forks source link

remove warning at generated _memset() #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. generate c/h-file
2. compile source
3. see warnings "warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]"

The following is generated:

void _memset(void *msg_ptr, char init_val, unsigned int size) {
    int i;
    for(i = 0; i < size; ++ i)
[...]

So we have a comparison between the unsingend int size and the int i; 

Original issue reported on code.google.com by embed...@xyz.de on 28 Dec 2012 at 9:04

GoogleCodeExporter commented 9 years ago

Original comment by nvp...@gmail.com on 23 Jan 2013 at 10:10

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r60.

Original comment by nvp...@gmail.com on 23 Jan 2013 at 11:21