Skip to content

Commit dc0d31e

Browse files
lone/lisp: resolve some warnings
The compiler was warning that these functions did not return a value in all possible paths.
1 parent c04f6a4 commit dc0d31e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

source/lone/lisp/module.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ static struct lone_lisp_value lone_lisp_module_name_to_key(struct lone_lisp *lon
5151
case LONE_LISP_TYPE_BYTES:
5252
case LONE_LISP_TYPE_VECTOR:
5353
case LONE_LISP_TYPE_TABLE:
54+
default:
5455
/* invalid module name component */ linux_exit(-1);
5556
}
5657
}

source/lone/lisp/modules/intrinsic/linux.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ static inline long lone_lisp_value_to_linux_system_call_argument(struct lone_lis
385385
case LONE_LISP_TYPE_VECTOR:
386386
case LONE_LISP_TYPE_TABLE:
387387
case LONE_LISP_TYPE_MODULE:
388+
default:
388389
linux_exit(-1);
389390
}
390391
}

0 commit comments

Comments
 (0)