Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dddh
freeswitch-1.4
gcc_6.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gcc_6.patch of Package freeswitch-1.4
--- freeswitch-1.4.26/libs/sofia-sip/libsofia-sip-ua/http/http_header.c~ 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/libs/sofia-sip/libsofia-sip-ua/http/http_header.c 2016-06-17 21:38:05.514882474 +0000 @@ -73,8 +73,8 @@ if (!http->http_host) return -1; - for (pl = http->http_payload; pl; pl = pl->pl_next) - len += pl->pl_len; + for (pl = http->http_payload; pl; pl = pl->pl_next) + len += pl->pl_len; if (len > UINT32_MAX) return -1; --- freeswitch-1.4.26/libs/sofia-sip/libsofia-sip-ua/http/http_parser.c~ 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/libs/sofia-sip/libsofia-sip-ua/http/http_parser.c 2016-06-17 21:36:53.950497729 +0000 @@ -463,8 +463,9 @@ case 'H': if (MATCH(s, "HEAD")) code = http_method_head; break; case 'O': if (MATCH(s, "OPTIONS")) code = http_method_options; break; case 'P': if (MATCH(s, "POST")) code = http_method_post; - else - if (MATCH(s, "PUT")) code = http_method_put; break; + else + if (MATCH(s, "PUT")) code = http_method_put; + break; case 'T': if (MATCH(s, "TRACE")) code = http_method_trace; break; } --- freeswitch-1.4.26/libs/sofia-sip/libsofia-sip-ua/msg/msg_date.c~ 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/libs/sofia-sip/libsofia-sip-ua/msg/msg_date.c 2016-06-17 21:34:18.457667086 +0000 @@ -248,7 +248,8 @@ /* actime-date = wkday SP month SP ( 2DIGIT | ( SP 1DIGIT )) SP time SP 4DIGIT */ mon = month_d(s); skip_token(&s); - if (mon < 0 || !IS_LWS(*s)) return -1; s++; + if (mon < 0 || !IS_LWS(*s)) return -1; + s++; while (IS_LWS(*s)) s++; if (!is_digit(*s)) return -1; day = *s++ - '0'; if (is_digit(*s)) day = 10 * day + *s++ - '0'; --- freeswitch-1.4.26/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.c~ 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.c 2016-06-17 21:39:16.143263663 +0000 @@ -1593,7 +1593,7 @@ for (; cr; cr = cr->cr_next) { if (cr->cr_method == sip_method_cancel) continue; - break; + break; } if (cr && !nua_client_request_in_progress(cr)) { --- freeswitch-1.4.26/src/mod/languages/mod_v8/Makefile.am~ 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/src/mod/languages/mod_v8/Makefile.am 2016-06-17 22:27:32.323538168 +0000 @@ -19,7 +19,7 @@ V8_LIBEXT=so # Some gcc versions report warnings incorrectly -V8_BUILDPARAMS=strictaliasing=off werror=no i18nsupport=off -V8_SNAPSHOT=snapshot +V8_BUILDPARAMS=strictaliasing=off werror=no i18nsupport=off snapshot=off +V8_SNAPSHOT=nosnapshot endif if ENABLE_STATIC_V8 --- freeswitch-1.4.26/src/mod/applications/mod_spandsp/udptl.c~ 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/src/mod/applications/mod_spandsp/udptl.c 2016-06-17 21:43:27.340630916 +0000 @@ -207,8 +207,7 @@ /* Save the new packet. Pure redundancy mode won't use this, but some systems will switch into FEC mode after sending some redundant packets. */ x = seq_no & UDPTL_BUF_MASK; - if (msg_len > 0) - memcpy(s->rx[x].buf, msg, msg_len); + if (msg_len > 0) memcpy(s->rx[x].buf, msg, msg_len); s->rx[x].buf_len = msg_len; s->rx[x].fec_len[0] = 0; s->rx[x].fec_span = 0; --- freeswitch-1.4.26_orig/src/switch_json.c 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/src/switch_json.c 2016-06-17 19:49:10.258746483 +0000 @@ -39,7 +39,8 @@ static int cJSON_strcasecmp(const char *s1,const char *s2) { - if (!s1) return (s1==s2)?0:1;if (!s2) return 1; + if (!s1) return (s1==s2)?0:1; + if (!s2) return 1; for(; tolower(*(const unsigned char *)s1) == tolower(*(const unsigned char *)s2); ++s1, ++s2) if(*s1 == 0) return 0; return tolower(*(const unsigned char *)s1) - tolower(*(const unsigned char *)s2); } @@ -482,7 +483,8 @@ *ptr++=':';if (fmt) *ptr++='\t'; strcpy(ptr,entries[i]);ptr+=strlen(entries[i]); if (i!=numentries-1) *ptr++=','; - if (fmt) *ptr++='\n';*ptr=0; + if (fmt) *ptr++='\n'; + *ptr=0; cJSON_free(names[i]);cJSON_free(entries[i]); } @@ -522,7 +524,11 @@ SWITCH_DECLARE(void) cJSON_AddItemReferenceToObject(cJSON *object,const char *string,cJSON *item) {cJSON_AddItemToObject(object,string,create_reference(item));} SWITCH_DECLARE(cJSON *)cJSON_DetachItemFromArray(cJSON *array,int which) {cJSON *c=array->child;while (c && which>0) c=c->next,which--;if (!c) return 0; - if (c->prev) c->prev->next=c->next;if (c->next) c->next->prev=c->prev;if (c==array->child) array->child=c->next;c->prev=c->next=0;return c;} + if (c->prev) c->prev->next=c->next; + if (c->next) c->next->prev=c->prev; + if (c==array->child) array->child=c->next; + c->prev=c->next=0; + return c;} SWITCH_DECLARE(void) cJSON_DeleteItemFromArray(cJSON *array,int which) {cJSON_Delete(cJSON_DetachItemFromArray(array,which));} SWITCH_DECLARE(cJSON *)cJSON_DetachItemFromObject(cJSON *object,const char *string) {int i=0;cJSON *c=object->child;while (c && cJSON_strcasecmp(c->string,string)) i++,c=c->next;if (c) return cJSON_DetachItemFromArray(object,i);return 0;} SWITCH_DECLARE(void) cJSON_DeleteItemFromObject(cJSON *object,const char *string) {cJSON_Delete(cJSON_DetachItemFromObject(object,string));} --- freeswitch-1.4.26_orig/libs/esl/fs_cli.c 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/libs/esl/fs_cli.c 2016-06-17 19:53:30.192522509 +0000 @@ -780,7 +780,8 @@ char *c = handle->last_event->body; printf("%s", handle->last_event->body); if (*c) { - while (*c) ++c; c--; + while (*c) ++c; + c--; if (*c != '\n') printf("\n"); } --- freeswitch-1.4.26_orig/libs/esl/src/esl_json.c 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/libs/esl/src/esl_json.c 2016-06-17 20:06:41.113935294 +0000 @@ -39,7 +39,8 @@ static int cJSON_strcasecmp(const char *s1,const char *s2) { - if (!s1) return (s1==s2)?0:1;if (!s2) return 1; + if (!s1) return (s1==s2)?0:1; + if (!s2) return 1; for(; tolower(*(const unsigned char *)s1) == tolower(*(const unsigned char *)s2); ++s1, ++s2) if(*s1 == 0) return 0; return tolower(*(const unsigned char *)s1) - tolower(*(const unsigned char *)s2); } @@ -480,7 +481,8 @@ *ptr++=':';if (fmt) *ptr++='\t'; strcpy(ptr,entries[i]);ptr+=strlen(entries[i]); if (i!=numentries-1) *ptr++=','; - if (fmt) *ptr++='\n';*ptr=0; + if (fmt) *ptr++='\n'; + *ptr=0; cJSON_free(names[i]);cJSON_free(entries[i]); } @@ -507,7 +509,10 @@ ESL_DECLARE(void) cJSON_AddItemReferenceToObject(cJSON *object,const char *string,cJSON *item) {cJSON_AddItemToObject(object,string,create_reference(item));} ESL_DECLARE(cJSON *)cJSON_DetachItemFromArray(cJSON *array,int which) {cJSON *c=array->child;while (c && which>0) c=c->next,which--;if (!c) return 0; - if (c->prev) c->prev->next=c->next;if (c->next) c->next->prev=c->prev;if (c==array->child) array->child=c->next;c->prev=c->next=0;return c;} + if (c->prev) c->prev->next=c->next; + if (c->next) c->next->prev=c->prev; + if (c==array->child) array->child=c->next; + c->prev=c->next=0;return c;} ESL_DECLARE(void) cJSON_DeleteItemFromArray(cJSON *array,int which) {cJSON_Delete(cJSON_DetachItemFromArray(array,which));} ESL_DECLARE(cJSON *)cJSON_DetachItemFromObject(cJSON *object,const char *string) {int i=0;cJSON *c=object->child;while (c && cJSON_strcasecmp(c->string,string)) i++,c=c->next;if (c) return cJSON_DetachItemFromArray(object,i);return 0;} ESL_DECLARE(void) cJSON_DeleteItemFromObject(cJSON *object,const char *string) {cJSON_Delete(cJSON_DetachItemFromObject(object,string));} --- freeswitch-1.4.26_orig/libs/libdingaling/src/sha1.c 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/libs/libdingaling/src/sha1.c 2016-06-17 20:25:47.025797063 +0000 @@ -63,7 +63,7 @@ #endif #ifndef lint -static const char rcsid[] = +static const char rcsid[] __attribute__ ((unused)) = "$Id: sha1.c 680 2003-07-25 21:57:38Z asaddi $"; #endif /* !lint */ --- freeswitch-1.4.26_orig/libs/sofia-sip/libsofia-sip-ua/su/su_socket_port.c 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/libs/sofia-sip/libsofia-sip-ua/su/su_socket_port.c 2016-06-17 20:43:21.153045164 +0000 @@ -170,10 +170,12 @@ self->sup_mbox_index = 0; if (self->sup_mbox[0] && self->sup_mbox[0] != INVALID_SOCKET) - su_close(self->sup_mbox[0]); self->sup_mbox[0] = INVALID_SOCKET; + su_close(self->sup_mbox[0]); + self->sup_mbox[0] = INVALID_SOCKET; #if HAVE_SOCKETPAIR if (self->sup_mbox[1] && self->sup_mbox[1] != INVALID_SOCKET) - su_close(self->sup_mbox[1]); self->sup_mbox[1] = INVALID_SOCKET; + su_close(self->sup_mbox[1]); + self->sup_mbox[1] = INVALID_SOCKET; #endif su_pthread_port_deinit(self); --- freeswitch-1.4.26_orig/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c 2016-06-17 20:59:26.755694991 +0000 @@ -1640,7 +1640,8 @@ D = A->a6_prelen - B->a6_prelen; if (D) return D; D = !A->a6_prename - !B->a6_prename; if (D == 0 && A->a6_prename && B->a6_prename) - D = su_strcasecmp(A->a6_prename, B->a6_prename); if (D) return D; + D = su_strcasecmp(A->a6_prename, B->a6_prename); + if (D) return D; return memcmp(&A->a6_suffix, &B->a6_suffix, sizeof A->a6_suffix); } case sres_type_aaaa: --- freeswitch-1.4.26_orig/libs/sofia-sip/libsofia-sip-ua/sdp/sdp.c 2015-11-19 20:59:46.000000000 +0000 +++ freeswitch-1.4.26/libs/sofia-sip/libsofia-sip-ua/sdp/sdp.c 2016-06-17 21:14:41.586002394 +0000 @@ -1,4 +1,4 @@ -/* + /* * This file is part of the Sofia-SIP package * * Copyright (C) 2005 Nokia Corporation. @@ -1858,7 +1858,8 @@ if (aparam == bparam) return 1; - if (!aparam) aparam = "1"; if (!bparam) bparam = "1"; + if (!aparam) aparam = "1"; + if (!bparam) bparam = "1"; if (!su_casematch(aparam, bparam)) return 0; @@ -1895,7 +1896,8 @@ break; } - if (!lparam) lparam = "1"; if (!rparam) rparam = "1"; + if (!lparam) lparam = "1"; + if (!rparam) rparam = "1"; if (!su_casematch(lparam, rparam)) continue; --- freeswitch-1.4.26/src/mod/languages/mod_v8/Makefile.in~ 2015-11-19 21:01:30.000000000 +0000 +++ freeswitch-1.4.26/src/mod/languages/mod_v8/Makefile.in 2016-06-17 23:14:17.228300525 +0000 @@ -425,10 +425,10 @@ @ISMAC_FALSE@V8_BUILDPARAMS = strictaliasing=off werror=no \ @ISMAC_FALSE@ i18nsupport=off $(am__append_1) # Build with snapshot doesn't work for OSX right now -@ISMAC_TRUE@V8_BUILDPARAMS = snapshot=off i18nsupport=off \ -@ISMAC_TRUE@ $(am__append_1) -@ISMAC_FALSE@V8_SNAPSHOT = snapshot -@ISMAC_TRUE@V8_SNAPSHOT = nosnapshot +V8_BUILDPARAMS = snapshot=off i18nsupport=off werror=no \ + $(am__append_1) +#@ISMAC_FALSE@V8_SNAPSHOT = snapshot +V8_SNAPSHOT = nosnapshot @ENABLE_STATIC_V8_TRUE@@ISMAC_FALSE@V8_STATIC_DIR = $(V8_BUILDDIR)/out/native/obj.target/tools/gyp # Build the static lib version of V8 --- freeswitch-1.6.15_orig/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser.c 2017-02-14 06:31:21.000000000 +0000 +++ freeswitch-1.6.15/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser.c 2017-03-12 13:07:05.229706690 +0000 @@ -2017,7 +2017,7 @@ for (last = h; last->sh_succ; last = last->sh_succ) { /* Ensure that chain is connected */ assert(last->sh_next == last->sh_succ); - assert(last->sh_succ->sh_prev = &last->sh_succ); + assert((last->sh_succ->sh_prev = &last->sh_succ)); } prev = &last->sh_succ; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor