]> granicus.if.org Git - php/commitdiff
Reduce compiler noise by removing unused variables and labels
authorChristopher Jones <sixd@php.net>
Thu, 15 Aug 2013 04:06:59 +0000 (21:06 -0700)
committerChristopher Jones <sixd@php.net>
Thu, 15 Aug 2013 04:06:59 +0000 (21:06 -0700)
ext/gd/gd.c
ext/gd/libgd/gd.c
ext/standard/url_scanner_ex.c

index 8f32ad5067eb02c296bb63f28ff022ab61486a9e..fb258214a153ffed7437af35543f6f506281c8cf 100644 (file)
@@ -2434,7 +2434,7 @@ static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type,
                fflush(fp);
        }
 
-register_im:
+/* register_im: */
        if (im) {
                ZEND_REGISTER_RESOURCE(return_value, im, le_gd);
                php_stream_close(stream);
index 7ed6617c57bcc4a3f48b191990be7a7b45621046..54890bc1777ea8757bfae088b88caaee0193d74e 100644 (file)
@@ -3011,7 +3011,6 @@ void gdImageGetClip (gdImagePtr im, int *x1P, int *y1P, int *x2P, int *y2P)
 int gdImagePaletteToTrueColor(gdImagePtr src)
 {
        unsigned int y;
-       unsigned char alloc_y = 0;
        unsigned int yy;
 
        if (src == NULL) {
index 833e9d86cea768b19c6dec65fcb5fbd142bd35db..2c2dfda1b1e4e80d22fa582fdaa619ad07981526 100644 (file)
@@ -1011,7 +1011,7 @@ static void php_url_scanner_output_handler(char *output, uint output_len, char *
 
 PHPAPI int php_url_scanner_add_var(char *name, int name_len, char *value, int value_len, int urlencode TSRMLS_DC)
 {
-       char *encoded;
+       char *encoded = NULL;
        int encoded_len;
        smart_str val;