Mercurial > dwindows
diff gtk/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 | aaea278c2356 |
line wrap: on
line diff
--- a/gtk/dw.c Thu Jun 11 01:11:23 2020 +0000 +++ b/gtk/dw.c Thu Jun 11 01:27:38 2020 +0000 @@ -13850,8 +13850,9 @@ case DW_FEATURE_CONTAINER_STRIPE: case DW_FEATURE_MLE_WORD_WRAP: return DW_FEATURE_ENABLED; + default: + return DW_FEATURE_UNSUPPORTED; } - return DW_FEATURE_UNSUPPORTED; } /* @@ -13885,6 +13886,7 @@ case DW_FEATURE_MLE_WORD_WRAP: return DW_ERROR_GENERAL; /* These features are supported and configurable */ + default: + return DW_FEATURE_UNSUPPORTED; } - return DW_FEATURE_UNSUPPORTED; -} +}