LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0004-fix-build-warning.patch of Package erlang (Project home:Ledest:erlang:20)

From c331d9c09e494bd37fece23d5062ead91900195c Mon Sep 17 00:00:00 2001
From: Led <ledest@gmail.com>
Date: Mon, 16 Feb 2015 10:47:52 +0200
Subject: [PATCH 10/12] fix build warning

oe_ei_encode_wstring.c: In function 'oe_ei_encode_wstring':
oe_ei_encode_wstring.c:25:11: warning: unused variable 'wchar' [-Wunused-variable]
---
 lib/ic/c_src/oe_ei_encode_wstring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ic/c_src/oe_ei_encode_wstring.c b/lib/ic/c_src/oe_ei_encode_wstring.c
index 6f26c53..df7572b 100644
--- a/lib/ic/c_src/oe_ei_encode_wstring.c
+++ b/lib/ic/c_src/oe_ei_encode_wstring.c
@@ -22,7 +22,7 @@
 
 int oe_ei_encode_wstring(CORBA_Environment *ev, CORBA_wchar *p) {
 
-  int len,wchar,size,tmp,error_code;
+  int len,size,tmp,error_code;
 
   len = ic_wstrlen(p);
   size = ev->_iout + __OE_LISTHDRSZ__ +(len * __OE_WCHARSZ__); 
-- 
2.1.4