[CRIU] [PATCH 9/9] protobuf: replace the constant 4294967295 with 0xFFFFFFFF in generated sources

Andrew Vagin avagin at parallels.com
Wed Jan 16 04:24:59 EST 2013


On Wed, Jan 16, 2013 at 12:28:31PM +0400, Alexander Kartashov wrote:
> This prevents compilation warnings on ARM.
> 
> 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 4736008..3713f18 100644
> --- a/protobuf/Makefile
> +++ b/protobuf/Makefile
> @@ -48,6 +48,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,$@)

Looks ugly. Is it a bug in the protobuf library?

>  
>  %.o: %.c %.h
>  	$(E) "  CC       "$@
> -- 
> 1.7.10.4
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> http://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list