Skip to content

Commit 9117bc9

Browse files
authored
Merge pull request #119 from mephistolist/main
Update ecmp.c
2 parents 5ade600 + 926d2cf commit 9117bc9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

formats/ecmp/ecmp.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ unsigned int parseraw(char* s, char** dest)
157157
return strlen(s);
158158
}
159159

160-
unsigned int parseinfo(char *s, struct package* dest)
161-
{
160+
unsigned int parseinfo(char *s, struct package* dest) {
161+
(void)dest;
162162
char* p = s;
163163
while (*p != '\0') {
164164
if (*p == ' ') {
@@ -214,9 +214,11 @@ unsigned int getsections(char* path,section*** sections) {
214214
ssize_t read;
215215
*sections = calloc(16,sizeof(section));
216216
unsigned int sectionsalloc = 256;
217+
(void)sectionsalloc;
217218
unsigned int sectionscount = 0;
218219

219220
section* current = NULL;
221+
(void)current;
220222
unsigned int alloc = 0;
221223

222224
while ((read = getline(&line,&len,fp)) != EOF) {
@@ -319,4 +321,3 @@ int create(const char* path,struct package* pkg)
319321
return 0;
320322

321323
}
322-

0 commit comments

Comments
 (0)