GNU bug report logs -
#78032
new compilation error
Previous Next
Reported by: Bruno Haible <bruno <at> clisp.org>
Date: Thu, 24 Apr 2025 10:58:08 UTC
Severity: normal
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Paul,
The CI reports a compilation error of GNU diffutils, caused by the
most recent commit 45a4762bf3241e7fb6a2e01d382791ae44236841 .
Error seen on CentOS 7 (with gcc):
../../src/sdiff.c: In function 'edit':
../../src/sdiff.c:884:8: error: a label can only be part of a statement and a declaration is not a statement
int cmd1 = skip_white ();
^
make[2]: *** [sdiff.o] Error 1
Errors seen on macOS 15 and FreeBSD (with clang):
../../src/sdiff.c:884:8: error: expected expression
884 | int cmd1 = skip_white ();
| ^
../../src/sdiff.c:885:23: error: use of undeclared identifier 'cmd1'; did you mean 'cmd'?
885 | switch (cmd1)
| ^~~~
| cmd
...
Bruno
This bug report was last modified 23 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.