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

Alexander Kartashov alekskartashov at parallels.com
Mon Jan 14 02:37:20 EST 2013


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 5527e10..bc1d590 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,$@)
 
 %.o: %.c %.h
 	$(E) "  CC       "$@
-- 
1.7.10.4



More information about the CRIU mailing list