Skip to content

Commit 90f523b

Browse files
committed
Fix: [-Wunused-but-set-variable] (comment as usage if commented)
1 parent d871479 commit 90f523b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

yaf_dispatcher.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ int yaf_dispatcher_handle(yaf_dispatcher_t *dispatcher, yaf_request_t *request,
535535
} else {
536536
int is_def_module = 0;
537537
/* int is_def_ctr = 0; */
538-
zval *module, *controller, *dmodule, *dcontroller, *instantly_flush;
538+
zval *module, *controller, *dmodule, /* *dcontroller,*/ *instantly_flush;
539539
zend_class_entry *ce;
540540
yaf_controller_t *executor;
541541
zend_function *fptr;
@@ -544,7 +544,9 @@ int yaf_dispatcher_handle(yaf_dispatcher_t *dispatcher, yaf_request_t *request,
544544
controller = zend_read_property(request_ce, request, ZEND_STRL(YAF_REQUEST_PROPERTY_NAME_CONTROLLER), 1 TSRMLS_CC);
545545

546546
dmodule = zend_read_property(yaf_dispatcher_ce, dispatcher, ZEND_STRL(YAF_DISPATCHER_PROPERTY_NAME_MODULE), 1 TSRMLS_CC);
547+
/*
547548
dcontroller = zend_read_property(yaf_dispatcher_ce, dispatcher, ZEND_STRL(YAF_DISPATCHER_PROPERTY_NAME_CONTROLLER), 1 TSRMLS_CC);
549+
*/
548550

549551
if (Z_TYPE_P(module) != IS_STRING
550552
|| !Z_STRLEN_P(module)) {

0 commit comments

Comments
 (0)