Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Commit df209c0

Browse files
committed
Eliminate pointless assignment
Compiler lint: src/lib/libast/tm/tmxscan.c:364:21: Value stored to 'x' is never read The call is solely for its side-effects. No need to store the return value.
1 parent 5e417b0 commit df209c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/libast/tm/tmxscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ static_fn Time_t tmx_scan(const char *s, char **e, const char *format, char **f,
361361
s = b;
362362
goto again;
363363
case '&':
364-
x = tmx_gen(tm, &set);
364+
(void)tmx_gen(tm, &set);
365365
x = tmxdate(s, e, t);
366366
if (s == (const char *)*e) goto next;
367367
t = x;

0 commit comments

Comments
 (0)