From:             sixd
Operating system: Ubuntu 12.04
PHP version:      5.5.0beta4
Package:          GD related
Bug Type:         Bug
Bug description:Implicit function declaratiion and unused variables in gd.c

Description:
------------
Compiling gd.c gives these warnings:

/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c: In function 
‘zif_imageloadfont’:
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c:1656:2: warning: implicit 
declaration of function ‘overflow2’ [-Wimplicit-function-declaration]
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/libgd/gd.c: In function 
‘php_gd__gdImageFillTiled’:
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/libgd/gd.c:1961:6: warning:
variable 
‘tiled’ set but not used [-Wunused-but-set-variable]
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/libgd/gd.c: In function 
‘php_gd_gdImageRectangle’:
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/libgd/gd.c:2038:6: warning:
variable 
‘half1’ set but not used [-Wunused-but-set-variable]
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c: In function
‘zif_imagecrop’:
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c:5263:9: warning: unused
variable 
‘threshold’ [-Wunused-variable]
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c:5262:7: warning: unused
variable 
‘color’ [-Wunused-variable]
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c:5261:7: warning: unused
variable 
‘mode’ [-Wunused-variable]
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c: In function
‘zif_imagescale’:
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/libgd/gd.c: In function 
‘php_gd_gdImageCopyResized’:/home/cjones/Desktop/php-
5.5.0beta4/ext/gd/gd.c:5369:9: warning: unused variable ‘threshold’
[-Wunused-
variable]

/home/cjones/Desktop/php-5.5.0beta4/ext/gd/libgd/gd.c:2359:9: warning:
variable 
‘accum’ set but not used
[-Wunused-but-set-variable]/home/cjones/Desktop/php-
5.5.0beta4/ext/gd/gd.c:5368:7: warning: unused variable ‘color’
[-Wunused-
variable]

/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c:5367:7: warning: unused
variable 
‘mode’ [-Wunused-variable]
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c: In function
‘zif_imageaffine’:
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c:5420:9: warning: unused
variable 
‘threshold’ [-Wunused-variable]
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c:5419:7: warning: unused
variable 
‘color’ [-Wunused-variable]
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c:5418:7: warning: unused
variable 
‘mode’ [-Wunused-variable]
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c: In function 
‘zif_imageaffinematrixget’:
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/gd.c:5526:6: warning: variable
‘res’ 
set but not used [-Wunused-but-set-variable]
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/libgd/gd.c: In function 
‘gdImagePaletteToTrueColor’:
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/libgd/gd.c:3020:29: warning:
unused 
variable ‘alloc_aa’ [-Wunused-variable]
/home/cjones/Desktop/php-5.5.0beta4/ext/gd/libgd/gd.c:3020:16: warning:
unused 
variable ‘alloc_y’ [-Wunused-variable]

My 'configure' options were:
'--with-gd' \
'--with-curl' \
'--with-jpeg-dir' \
'--with-png-dir' \
'--enable-gd-native-ttf' \



-- 
Edit bug report at https://bugs.php.net/bug.php?id=64710&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64710&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64710&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64710&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64710&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64710&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64710&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64710&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64710&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64710&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64710&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64710&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64710&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64710&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64710&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64710&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64710&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64710&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64710&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64710&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64710&r=mysqlcfg

Reply via email to