]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix build on gcc-4.9
authorTravis Cross <tc@traviscross.com>
Thu, 4 Sep 2014 03:39:23 +0000 (03:39 +0000)
committerTravis Cross <tc@traviscross.com>
Thu, 4 Sep 2014 03:43:36 +0000 (03:43 +0000)
GCC doesn't like when variables that are set but never used.

src/switch_utils.c

index d5de0a50f5b7c40c8e1ad55b631a088e8b79ad37..8e62b97f54b4ec5864753b8a8182992456b3b1e7 100644 (file)
@@ -3614,7 +3614,6 @@ SWITCH_DECLARE(switch_status_t) switch_http_parse_header(char *buffer, uint32_t
        int argc;
        char *argv[2] = { 0 };
        char *body = NULL;
-       int header_len = 0;
 
        if (datalen < 16)       return status; /* minimum GET / HTTP/1.1\r\n */
 
@@ -3626,11 +3625,9 @@ SWITCH_DECLARE(switch_status_t) switch_http_parse_header(char *buffer, uint32_t
 
        if ((body = strstr(p, "\r\n\r\n"))) {
                *body = '\0';
-               header_len = body - buffer + 1;
                body += 4;
        } else if (( body = strstr(p, "\n\n"))) {
                *body = '\0';
-               header_len = body - buffer + 1;
                body += 2;
        }