diff os2/dw.c @ 2091:68f1924fdd13

Restructure feature switch so fallback return is in the default case.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 11 Jun 2020 01:27:38 +0000
parents cdb94c6fd611
children a3e176450077
line wrap: on
line diff
--- a/os2/dw.c	Thu Jun 11 01:11:23 2020 +0000
+++ b/os2/dw.c	Thu Jun 11 01:27:38 2020 +0000
@@ -13850,8 +13850,9 @@
         case DW_FEATURE_NOTEBOOK_STATUS_TEXT:
         case DW_FEATURE_MDI:
             return DW_FEATURE_ENABLED;
+        default:
+            return DW_FEATURE_UNSUPPORTED;
     }
-    return DW_FEATURE_UNSUPPORTED;
 }
 
 /*
@@ -13878,6 +13879,7 @@
         case DW_FEATURE_MDI:
             return DW_ERROR_GENERAL;
         /* These features are supported and configurable */
+        default:
+            return DW_FEATURE_UNSUPPORTED;
     }
-    return DW_FEATURE_UNSUPPORTED;
-}
+}