comparison gtk3/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 b33d020b04e7
comparison
equal deleted inserted replaced
2090:cdb94c6fd611 2091:68f1924fdd13
12339 #if !GTK_CHECK_VERSION(3,14,0) 12339 #if !GTK_CHECK_VERSION(3,14,0)
12340 case DW_FEATURE_CONTAINER_STRIPE: 12340 case DW_FEATURE_CONTAINER_STRIPE:
12341 #endif 12341 #endif
12342 case DW_FEATURE_MLE_WORD_WRAP: 12342 case DW_FEATURE_MLE_WORD_WRAP:
12343 return DW_FEATURE_ENABLED; 12343 return DW_FEATURE_ENABLED;
12344 default:
12345 return DW_FEATURE_UNSUPPORTED;
12344 } 12346 }
12345 return DW_FEATURE_UNSUPPORTED;
12346 } 12347 }
12347 12348
12348 /* 12349 /*
12349 * Sets the state of the requested library feature. 12350 * Sets the state of the requested library feature.
12350 * Parameters: 12351 * Parameters:
12379 case DW_FEATURE_CONTAINER_STRIPE: 12380 case DW_FEATURE_CONTAINER_STRIPE:
12380 #endif 12381 #endif
12381 case DW_FEATURE_MLE_WORD_WRAP: 12382 case DW_FEATURE_MLE_WORD_WRAP:
12382 return DW_ERROR_GENERAL; 12383 return DW_ERROR_GENERAL;
12383 /* These features are supported and configurable */ 12384 /* These features are supported and configurable */
12385 default:
12386 return DW_FEATURE_UNSUPPORTED;
12384 } 12387 }
12385 return DW_FEATURE_UNSUPPORTED; 12388 }
12386 }