From ae3e55c7a701708e542e36b8a861fae8c21b61c8 Mon Sep 17 00:00:00 2001
From: Lionel Gauthier <lionel.gauthier@eurecom.fr>
Date: Thu, 30 Apr 2015 09:42:31 +0000
Subject: [PATCH] Sebastian Held patches15/0030-fix-compiler-warnings.patch

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7332 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 cmake_targets/tools/build_helper              |  1 +
 openair-cn/S1AP/MESSAGES/ASN1/asn1cpatch_2.p0 | 22 +++++++++++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 openair-cn/S1AP/MESSAGES/ASN1/asn1cpatch_2.p0

diff --git a/cmake_targets/tools/build_helper b/cmake_targets/tools/build_helper
index ba146d2cb70..0131cbd71dd 100755
--- a/cmake_targets/tools/build_helper
+++ b/cmake_targets/tools/build_helper
@@ -335,6 +335,7 @@ install_asn1c_from_source(){
     rm -rf /tmp/asn1c-r1516/*
     svn co https://github.com/vlm/asn1c/trunk  /tmp/asn1c-r1516 -r 1516 > /tmp/log_compile_asn1c
     patch -p0 < $OPENAIRCN_DIR/S1AP/MESSAGES/ASN1/asn1cpatch.p0 >> /tmp/log_compile_asn1c
+    patch -p0 < $OPENAIRCN_DIR/S1AP/MESSAGES/ASN1/asn1cpatch_2.p0 >> /tmp/log_compile_asn1c
     ./configure
     make > /tmp/log_compile_asn1c 2>&1
     $SUDO make install
diff --git a/openair-cn/S1AP/MESSAGES/ASN1/asn1cpatch_2.p0 b/openair-cn/S1AP/MESSAGES/ASN1/asn1cpatch_2.p0
new file mode 100644
index 00000000000..80835b1b866
--- /dev/null
+++ b/openair-cn/S1AP/MESSAGES/ASN1/asn1cpatch_2.p0
@@ -0,0 +1,22 @@
+--- skeletons/OCTET_STRING.c.orig	2015-04-28 10:40:04.036970492 +0200
++++ skeletons/OCTET_STRING.c	2015-04-28 10:40:09.619970869 +0200
+@@ -159,7 +159,7 @@
+ }
+ 
+ static struct _stack *
+-_new_stack() {
++_new_stack(void) {
+ 	return (struct _stack *)CALLOC(1, sizeof(struct _stack));
+ }
+ 
+--- skeletons/converter-sample.c.orig	2015-04-28 10:40:32.164972391 +0200
++++ skeletons/converter-sample.c	2015-04-28 10:40:37.140972727 +0200
+@@ -353,7 +353,7 @@
+ } DynamicBuffer;
+ 
+ static void
+-buffer_dump() {
++buffer_dump(void) {
+ 	uint8_t *p = DynamicBuffer.data + DynamicBuffer.offset;
+ 	uint8_t *e = p + DynamicBuffer.length - (DynamicBuffer.unbits ? 1 : 0);
+ 	if(!opt_debug) return;
-- 
GitLab