/* Add #line to demark where we are from, so errors are correct! */
linemarker = tal_fmt(f, "#line %i \"%s\"\n",
example->srcline+2, source->fullname);
- write(fd, linemarker, strlen(linemarker));
+ if (write(fd, linemarker, strlen(linemarker)) != (int)strlen(linemarker)) {
+ close(fd);
+ return cast_const(char *, "Failure writing to temporary file");
+ }
for (i = 0; i < example->num_lines; i++) {
if (write(fd, example->lines[i], strlen(example->lines[i]))
/* FIXME: We should have one example per function in header. */
static void extract_examples(struct manifest *m,
- unsigned int *timeleft,
+ unsigned int *timeleft UNNEEDED,
struct score *score)
{
struct ccan_file *f, *mainh = NULL; /* gcc complains uninitialized */