projects
/
project
/
firmware-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b24299
)
srec2bin: drop unused "dum" variable
author
Rafał Miłecki
<rafal@milecki.pl>
Fri, 23 Feb 2024 06:18:36 +0000
(07:18 +0100)
committer
Rafał Miłecki
<rafal@milecki.pl>
Tue, 26 Mar 2024 09:16:30 +0000
(10:16 +0100)
This fixes:
src/srec2bin.c: In function ‘checksum’:
src/srec2bin.c:297:7: warning: variable ‘dum’ set but not used [-Wunused-but-set-variable]
int dum;
^~~
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
src/srec2bin.c
patch
|
blob
|
history
diff --git
a/src/srec2bin.c
b/src/srec2bin.c
index ad4222d6939234bcc0a3026d1843be7011e4b92e..9a889091887253028b711a7d35952a5cb03e619b 100644
(file)
--- a/
src/srec2bin.c
+++ b/
src/srec2bin.c
@@
-294,7
+294,6
@@
int checksum(char *cp,int count)
{
char *scp;
int cksum;
- int dum;
scp=cp;
while(*scp)
@@
-309,8
+308,6
@@
int checksum(char *cp,int count)
while(count)
{
cksum += gh(scp,2);
- if (count == 2)
- dum = ~cksum;
scp += 2;
count--;
}