Commit 5c011782 authored by Alexander Kartashov's avatar Alexander Kartashov Committed by Pavel Emelyanov

protobuf: replace the constant 4294967295 with 0xFFFFFFFF in generated sources

This workarounds a compilation warning on ARM:

	packet-sock.pb-c.c: In function 'packet_sock_entry__init':
	packet-sock.pb-c.c:98:3: error: this decimal constant is unsigned only in ISO C90 [-Werror]
	packet-sock.pb-c.c: At top level:
	packet-sock.pb-c.c:318:1: error: this decimal constant is unsigned only in ISO C90 [-Werror]
Signed-off-by: 's avatarAlexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3c16edc0
......@@ -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 "$@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment