[CRIU] [PATCH 17/20] protobuf: replace the constant 4294967295 with 0xFFFFFFFF to prevent warnings on ARM.

Alexander Kartashov alekskartashov at parallels.com
Wed Dec 12 11:14:31 EST 2012


> And where does this constant come from?

It's in the code generated by protobuf.

On 12/12/2012 08:13 PM, Pavel Emelyanov wrote:
> On 12/12/2012 08:09 PM, Alexander Kartashov wrote:
>>> What warnings are we talking about?
>> The ARM compiler says that the constant 4294967295 is unsingned only in C90.
> And where does this constant come from?
>
>> On 12/12/2012 08:08 PM, Pavel Emelyanov wrote:
>>> On 12/12/2012 05:34 PM, alekskartashov at parallels.com wrote:
>>>> From: Alexander Kartashov <alekskartashov at parallels.com>
>>> What warnings are we talking about?
>>>
>>>> Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
>>>> ---
>>>>    protobuf/Makefile |    1 +
>>>>    1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/protobuf/Makefile b/protobuf/Makefile
>>>> index c5e9314..42d8f41 100644
>>>> --- a/protobuf/Makefile
>>>> +++ b/protobuf/Makefile
>>>> @@ -47,6 +47,7 @@ PROTO_OBJS	:= $(patsubst %.c,%.o,$(PROTO_SRCS))
>>>>    %.pb-c.c %.pb-c.h: %.proto
>>>>    	$(E) "  PROTOBUF "$@
>>>>    	$(Q) protoc-c --c_out=./ $<
>>>> +	$(Q) sed -i 's/4294967295/0xFFFFFFFF/g' $@ $(patsubst %c,%h,$@)
>>>>    
>>>>    %.o: %.c %.h
>>>>    	$(E) "  CC       "$@
>>>>
>>
>


-- 
Sincerely yours,
Alexander Kartashov

Intern
Core team

www.parallels.com

Skype: aleksandr.kartashov
Email: alekskartashov at parallels.com



More information about the CRIU mailing list