@@ -295,9 +295,6 @@ static PHP_METHOD(Manager, __construct)
295295 phongo_zpp_char_len uri_string_len = 0 ;
296296 zval * options = NULL ;
297297 zval * driverOptions = NULL ;
298- SUPPRESS_UNUSED_WARNING (return_value )
299- SUPPRESS_UNUSED_WARNING (return_value_ptr )
300- SUPPRESS_UNUSED_WARNING (return_value_used )
301298
302299 zend_replace_error_handling (EH_THROW , phongo_exception_from_phongo_domain (PHONGO_ERROR_INVALID_ARGUMENT ), & error_handling TSRMLS_CC );
303300
@@ -341,7 +338,6 @@ static PHP_METHOD(Manager, executeCommand)
341338 zval * zreadPreference = NULL ;
342339 uint32_t server_id = 0 ;
343340 DECLARE_RETURN_VALUE_USED
344- SUPPRESS_UNUSED_WARNING (return_value_ptr )
345341
346342 if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO|z!" , & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
347343 return ;
@@ -381,7 +377,6 @@ static PHP_METHOD(Manager, executeReadCommand)
381377 zval * zreadPreference = NULL ;
382378 uint32_t server_id = 0 ;
383379 DECLARE_RETURN_VALUE_USED
384- SUPPRESS_UNUSED_WARNING (return_value_ptr )
385380
386381 if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO|a!" , & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
387382 return ;
@@ -413,7 +408,6 @@ static PHP_METHOD(Manager, executeWriteCommand)
413408 zval * options = NULL ;
414409 uint32_t server_id = 0 ;
415410 DECLARE_RETURN_VALUE_USED
416- SUPPRESS_UNUSED_WARNING (return_value_ptr )
417411
418412 if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO|a!" , & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
419413 return ;
@@ -440,7 +434,6 @@ static PHP_METHOD(Manager, executeReadWriteCommand)
440434 zval * options = NULL ;
441435 uint32_t server_id = 0 ;
442436 DECLARE_RETURN_VALUE_USED
443- SUPPRESS_UNUSED_WARNING (return_value_ptr )
444437
445438 if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO|a!" , & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
446439 return ;
@@ -469,7 +462,6 @@ static PHP_METHOD(Manager, executeQuery)
469462 zval * zreadPreference = NULL ;
470463 uint32_t server_id = 0 ;
471464 DECLARE_RETURN_VALUE_USED
472- SUPPRESS_UNUSED_WARNING (return_value_ptr )
473465
474466 if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO|z!" , & namespace , & namespace_len , & query , php_phongo_query_ce , & options ) == FAILURE ) {
475467 return ;
@@ -510,7 +502,6 @@ static PHP_METHOD(Manager, executeBulkWrite)
510502 bool free_options = false;
511503 uint32_t server_id = 0 ;
512504 DECLARE_RETURN_VALUE_USED
513- SUPPRESS_UNUSED_WARNING (return_value_ptr )
514505
515506 if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO|z!" , & namespace , & namespace_len , & zbulk , php_phongo_bulkwrite_ce , & options ) == FAILURE ) {
516507 return ;
@@ -540,7 +531,6 @@ static PHP_METHOD(Manager, getReadConcern)
540531{
541532 php_phongo_manager_t * intern ;
542533 DECLARE_RETURN_VALUE_USED
543- SUPPRESS_UNUSED_WARNING (return_value_ptr )
544534
545535 intern = Z_MANAGER_OBJ_P (getThis ());
546536
@@ -559,7 +549,6 @@ static PHP_METHOD(Manager, getReadPreference)
559549{
560550 php_phongo_manager_t * intern ;
561551 DECLARE_RETURN_VALUE_USED
562- SUPPRESS_UNUSED_WARNING (return_value_ptr )
563552
564553 intern = Z_MANAGER_OBJ_P (getThis ());
565554
@@ -579,8 +568,6 @@ static PHP_METHOD(Manager, getServers)
579568 php_phongo_manager_t * intern ;
580569 mongoc_server_description_t * * sds ;
581570 size_t i , n = 0 ;
582- SUPPRESS_UNUSED_WARNING (return_value_ptr )
583- SUPPRESS_UNUSED_WARNING (return_value_used )
584571
585572 intern = Z_MANAGER_OBJ_P (getThis ());
586573
@@ -615,7 +602,6 @@ static PHP_METHOD(Manager, getWriteConcern)
615602{
616603 php_phongo_manager_t * intern ;
617604 DECLARE_RETURN_VALUE_USED
618- SUPPRESS_UNUSED_WARNING (return_value_ptr )
619605
620606 intern = Z_MANAGER_OBJ_P (getThis ());
621607
@@ -635,8 +621,6 @@ static PHP_METHOD(Manager, selectServer)
635621 php_phongo_manager_t * intern ;
636622 zval * zreadPreference = NULL ;
637623 uint32_t server_id = 0 ;
638- SUPPRESS_UNUSED_WARNING (return_value_ptr )
639- SUPPRESS_UNUSED_WARNING (return_value_used )
640624
641625 intern = Z_MANAGER_OBJ_P (getThis ());
642626
@@ -662,8 +646,6 @@ static PHP_METHOD(Manager, startSession)
662646 mongoc_client_session_t * cs ;
663647 bson_error_t error = { 0 };
664648 mongoc_transaction_opt_t * txn_opts = NULL ;
665- SUPPRESS_UNUSED_WARNING (return_value_ptr )
666- SUPPRESS_UNUSED_WARNING (return_value_used )
667649
668650 intern = Z_MANAGER_OBJ_P (getThis ());
669651
@@ -684,8 +666,7 @@ static PHP_METHOD(Manager, startSession)
684666 phongo_throw_exception (
685667 PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC ,
686668 "Expected \"defaultTransactionOptions\" option to be an array, %s given" ,
687- PHONGO_ZVAL_CLASS_OR_TYPE_NAME_P (txn_options )
688- );
669+ PHONGO_ZVAL_CLASS_OR_TYPE_NAME_P (txn_options ));
689670 goto cleanup ;
690671 }
691672
0 commit comments