@@ -69,10 +69,8 @@ static int php_git2_repository_fetchhead_foreach_cb(const char *ref_name,
69
69
unsigned int is_merge ,
70
70
void * payload )
71
71
{
72
- php_git2_t * result ;
73
72
zval * param_ref_name , * param_remote_url , * param_oid , * param_is_merge , * retval_ptr = NULL ;
74
73
php_git2_cb_t * p = (php_git2_cb_t * )payload ;
75
- int i = 0 ;
76
74
long retval = 0 ;
77
75
char _oid [GIT2_OID_HEXSIZE ] = {0 };
78
76
GIT2_TSRMLS_SET (p -> tsrm_ls )
@@ -106,10 +104,8 @@ static int php_git2_repository_fetchhead_foreach_cb(const char *ref_name,
106
104
static int php_git2_repository_mergehead_foreach_cb (const git_oid * oid ,
107
105
void * payload )
108
106
{
109
- php_git2_t * result ;
110
107
zval * param_oid , * retval_ptr = NULL ;
111
108
php_git2_cb_t * p = (php_git2_cb_t * )payload ;
112
- int i = 0 ;
113
109
long retval = 0 ;
114
110
char _oid [GIT2_OID_HEXSIZE ] = {0 };
115
111
GIT2_TSRMLS_SET (p -> tsrm_ls )
@@ -435,7 +431,6 @@ PHP_FUNCTION(git_repository_head_detached)
435
431
int result = 0 ;
436
432
zval * repo = NULL ;
437
433
php_git2_t * _repo = NULL ;
438
- int error = 0 ;
439
434
440
435
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
441
436
"r" , & repo ) == FAILURE ) {
@@ -455,7 +450,6 @@ PHP_FUNCTION(git_repository_head_unborn)
455
450
int result = 0 ;
456
451
zval * repo = NULL ;
457
452
php_git2_t * _repo = NULL ;
458
- int error = 0 ;
459
453
460
454
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
461
455
"r" , & repo ) == FAILURE ) {
@@ -476,7 +470,6 @@ PHP_FUNCTION(git_repository_is_empty)
476
470
int result = 0 ;
477
471
zval * repo = NULL ;
478
472
php_git2_t * _repo = NULL ;
479
- int error = 0 ;
480
473
481
474
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
482
475
"r" , & repo ) == FAILURE ) {
@@ -520,7 +513,6 @@ PHP_FUNCTION(git_repository_set_workdir)
520
513
char * workdir = NULL ;
521
514
int workdir_len = 0 ;
522
515
long update_gitlink = 0 ;
523
- int error = 0 ;
524
516
525
517
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
526
518
"rsl" , & repo , & workdir , & workdir_len , & update_gitlink ) == FAILURE ) {
@@ -540,7 +532,6 @@ PHP_FUNCTION(git_repository_is_bare)
540
532
int result = 0 ;
541
533
zval * repo = NULL ;
542
534
php_git2_t * _repo = NULL ;
543
- int error = 0 ;
544
535
545
536
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
546
537
"r" , & repo ) == FAILURE ) {
@@ -694,7 +685,6 @@ PHP_FUNCTION(git_repository_message_remove)
694
685
int result = 0 ;
695
686
zval * repo = NULL ;
696
687
php_git2_t * _repo = NULL ;
697
- int error = 0 ;
698
688
699
689
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
700
690
"r" , & repo ) == FAILURE ) {
@@ -714,7 +704,6 @@ PHP_FUNCTION(git_repository_merge_cleanup)
714
704
int result = 0 ;
715
705
zval * repo = NULL ;
716
706
php_git2_t * _repo = NULL ;
717
- int error = 0 ;
718
707
719
708
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC ,
720
709
"r" , & repo ) == FAILURE ) {
@@ -731,8 +720,8 @@ PHP_FUNCTION(git_repository_merge_cleanup)
731
720
*/
732
721
PHP_FUNCTION (git_repository_fetchhead_foreach )
733
722
{
734
- int result = 0 , error = 0 ;
735
- zval * repo = NULL , * callback = NULL , * payload = NULL ;
723
+ int result = 0 ;
724
+ zval * repo = NULL , * payload = NULL ;
736
725
php_git2_t * _repo = NULL ;
737
726
zend_fcall_info fci = empty_fcall_info ;
738
727
zend_fcall_info_cache fcc = empty_fcall_info_cache ;
@@ -757,8 +746,8 @@ PHP_FUNCTION(git_repository_fetchhead_foreach)
757
746
*/
758
747
PHP_FUNCTION (git_repository_mergehead_foreach )
759
748
{
760
- int result = 0 , error = 0 ;
761
- zval * repo = NULL , * callback = NULL , * payload = NULL ;
749
+ int result = 0 ;
750
+ zval * repo = NULL , * payload = NULL ;
762
751
php_git2_t * _repo = NULL ;
763
752
zend_fcall_info fci = empty_fcall_info ;
764
753
zend_fcall_info_cache fcc = empty_fcall_info_cache ;
@@ -784,7 +773,7 @@ PHP_FUNCTION(git_repository_mergehead_foreach)
784
773
*/
785
774
PHP_FUNCTION (git_repository_hashfile )
786
775
{
787
- php_git2_t * result = NULL , * _repo = NULL ;
776
+ php_git2_t * _repo = NULL ;
788
777
git_oid out = {0 };
789
778
zval * repo = NULL ;
790
779
char * path = NULL , * as_path = NULL , buf [41 ] = {0 };
0 commit comments