From 7aca8bf599b95b1e2ba9e5ef13e626f16b1831dc Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sat, 7 Jan 2023 21:44:41 -0800 Subject: [PATCH] Resolve warning: enumeration values not explicitly handled in switch --- src/unixcomm.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/unixcomm.c b/src/unixcomm.c index 40690bb..f106f04 100644 --- a/src/unixcomm.c +++ b/src/unixcomm.c @@ -462,7 +462,9 @@ LispPTR Unix_handlecomm(LispPTR *args) { } else return (GetSmallp(1)); - default: return (NIL); + case UJSOCKET: + case UJUNUSED: + return (NIL); } break; @@ -503,7 +505,9 @@ LispPTR Unix_handlecomm(LispPTR *args) { DBPRINT(("Indicating EOF from PTY desc %d.\n", slot)); return (NIL); - default: return (NIL); + case UJSOCKET: + case UJUNUSED: + return (NIL); } case 3: /* Kill process */ @@ -547,7 +551,9 @@ LispPTR Unix_handlecomm(LispPTR *args) { UJ[slot].pathname = NULL; } break; - default: break; + case UJSOSTREAM: + case UJUNUSED: + break; } UJ[slot].type = UJUNUSED; UJ[slot].PID = 0; @@ -725,7 +731,9 @@ LispPTR Unix_handlecomm(LispPTR *args) { DBPRINT(("Indicating EOF from PTY desc %d.\n", slot)); return (NIL); - default: return (NIL); + case UJSOCKET: + case UJUNUSED: + return (NIL); } }