Closed stevebyan closed 5 years ago
OK, I integrated that, but I'll make some little changes to that in the near future.
... and the clang warning is a coding error, as it should read "if (*curline->txt)" . Has no real consequences, but I'll fix it in the next commit.
Thanks. I just tested my changes on Fedora. At 1a4ef410968, your old head of master, gcc 6.2.1 picks up the implicit declaration of 'unlink':
a09.c: In function ‘main’:
a09.c:7054:3: warning: implicit declaration of function ‘unlink’ [-Wimplicit-function-declaration]
unlink(objname);
^~
but it has no other complaints. (Unlike MacOS, Linux has a /usr/include/malloc.h)
With the fixes, a09 compiles, installs, and runs cleanly on Fedora.
The MacOS Clang compiler still gives one warning:
a09.c:3979:19: warning: address of array 'curline->txt' will always evaluate to 'true' [-Wpointer-bool-conversion] else if (curline->txt) / otherwise / ~~
~~~^It's not obvious to me what the original intent was, so I didn't make any changes to address this issue.