From a11a464552736f813656ca17c30c355543cfa573 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 15 Sep 2017 18:58:47 +0200 Subject: smpp34_dumpBuf.c: remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes compilation warning below: smpp34_dumpBuf.c:52:9: warning: variable ‘lefterror’ set but not used [-Wunused-but-set-variable] int lefterror = 0; Change-Id: Iea8ff80d3e4d16aaca6e37d64593b50fa27c8cfb --- src/smpp34_dumpBuf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/smpp34_dumpBuf.c b/src/smpp34_dumpBuf.c index 77dfdba..dd0bad4 100644 --- a/src/smpp34_dumpBuf.c +++ b/src/smpp34_dumpBuf.c @@ -49,14 +49,12 @@ smpp34_dumpBuf(uint8_t *dest, int destL, uint8_t *src, int srcL) int size; uint8_t ind = 3; uint8_t *buffer = NULL; - int lefterror = 0; size = srcL; buffer = src; memset(smpp34_strerror, 0, sizeof(smpp34_strerror)); ptrerror = smpp34_strerror; - lefterror = sizeof(smpp34_strerror); /* dump buffer character by character until size is reached */ for(i = 0; i < size; i++){ -- cgit v1.2.3