@@ -295,9 +295,6 @@ static PHP_METHOD(Manager, __construct)
295
295
phongo_zpp_char_len uri_string_len = 0 ;
296
296
zval * options = NULL ;
297
297
zval * driverOptions = NULL ;
298
- SUPPRESS_UNUSED_WARNING (return_value )
299
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
300
- SUPPRESS_UNUSED_WARNING (return_value_used )
301
298
302
299
zend_replace_error_handling (EH_THROW , phongo_exception_from_phongo_domain (PHONGO_ERROR_INVALID_ARGUMENT ), & error_handling TSRMLS_CC );
303
300
@@ -341,7 +338,6 @@ static PHP_METHOD(Manager, executeCommand)
341
338
zval * zreadPreference = NULL ;
342
339
uint32_t server_id = 0 ;
343
340
DECLARE_RETURN_VALUE_USED
344
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
345
341
346
342
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO|z!" , & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
347
343
return ;
@@ -381,7 +377,6 @@ static PHP_METHOD(Manager, executeReadCommand)
381
377
zval * zreadPreference = NULL ;
382
378
uint32_t server_id = 0 ;
383
379
DECLARE_RETURN_VALUE_USED
384
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
385
380
386
381
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO|a!" , & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
387
382
return ;
@@ -413,7 +408,6 @@ static PHP_METHOD(Manager, executeWriteCommand)
413
408
zval * options = NULL ;
414
409
uint32_t server_id = 0 ;
415
410
DECLARE_RETURN_VALUE_USED
416
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
417
411
418
412
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO|a!" , & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
419
413
return ;
@@ -440,7 +434,6 @@ static PHP_METHOD(Manager, executeReadWriteCommand)
440
434
zval * options = NULL ;
441
435
uint32_t server_id = 0 ;
442
436
DECLARE_RETURN_VALUE_USED
443
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
444
437
445
438
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO|a!" , & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
446
439
return ;
@@ -469,7 +462,6 @@ static PHP_METHOD(Manager, executeQuery)
469
462
zval * zreadPreference = NULL ;
470
463
uint32_t server_id = 0 ;
471
464
DECLARE_RETURN_VALUE_USED
472
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
473
465
474
466
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO|z!" , & namespace , & namespace_len , & query , php_phongo_query_ce , & options ) == FAILURE ) {
475
467
return ;
@@ -510,7 +502,6 @@ static PHP_METHOD(Manager, executeBulkWrite)
510
502
bool free_options = false;
511
503
uint32_t server_id = 0 ;
512
504
DECLARE_RETURN_VALUE_USED
513
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
514
505
515
506
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO|z!" , & namespace , & namespace_len , & zbulk , php_phongo_bulkwrite_ce , & options ) == FAILURE ) {
516
507
return ;
@@ -540,7 +531,6 @@ static PHP_METHOD(Manager, getReadConcern)
540
531
{
541
532
php_phongo_manager_t * intern ;
542
533
DECLARE_RETURN_VALUE_USED
543
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
544
534
545
535
intern = Z_MANAGER_OBJ_P (getThis ());
546
536
@@ -559,7 +549,6 @@ static PHP_METHOD(Manager, getReadPreference)
559
549
{
560
550
php_phongo_manager_t * intern ;
561
551
DECLARE_RETURN_VALUE_USED
562
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
563
552
564
553
intern = Z_MANAGER_OBJ_P (getThis ());
565
554
@@ -579,8 +568,6 @@ static PHP_METHOD(Manager, getServers)
579
568
php_phongo_manager_t * intern ;
580
569
mongoc_server_description_t * * sds ;
581
570
size_t i , n = 0 ;
582
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
583
- SUPPRESS_UNUSED_WARNING (return_value_used )
584
571
585
572
intern = Z_MANAGER_OBJ_P (getThis ());
586
573
@@ -615,7 +602,6 @@ static PHP_METHOD(Manager, getWriteConcern)
615
602
{
616
603
php_phongo_manager_t * intern ;
617
604
DECLARE_RETURN_VALUE_USED
618
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
619
605
620
606
intern = Z_MANAGER_OBJ_P (getThis ());
621
607
@@ -635,8 +621,6 @@ static PHP_METHOD(Manager, selectServer)
635
621
php_phongo_manager_t * intern ;
636
622
zval * zreadPreference = NULL ;
637
623
uint32_t server_id = 0 ;
638
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
639
- SUPPRESS_UNUSED_WARNING (return_value_used )
640
624
641
625
intern = Z_MANAGER_OBJ_P (getThis ());
642
626
@@ -662,8 +646,6 @@ static PHP_METHOD(Manager, startSession)
662
646
mongoc_client_session_t * cs ;
663
647
bson_error_t error = { 0 };
664
648
mongoc_transaction_opt_t * txn_opts = NULL ;
665
- SUPPRESS_UNUSED_WARNING (return_value_ptr )
666
- SUPPRESS_UNUSED_WARNING (return_value_used )
667
649
668
650
intern = Z_MANAGER_OBJ_P (getThis ());
669
651
@@ -684,8 +666,7 @@ static PHP_METHOD(Manager, startSession)
684
666
phongo_throw_exception (
685
667
PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC ,
686
668
"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 ));
689
670
goto cleanup ;
690
671
}
691
672
0 commit comments