Removed -Wno-parentheses from posix build and fixed warnings (bug 5745, r=psychonic).

This commit is contained in:
Kyle Sanderson
2013-07-18 15:50:57 -04:00
parent b96e0c8713
commit 29bc273e58
15 changed files with 64 additions and 68 deletions
+3 -3
View File
@@ -217,8 +217,8 @@ SC_FUNC int cp_set(const char *name)
/* clear the tables */
for (index=0; index<ELEMENTS(bytetable); index++)
bytetable[index]=INVALID; /* special code meaning "not found" */
assert(wordtablesize==0 && wordtabletop==0 && wordtable==NULL
|| wordtablesize>0 && wordtable!=NULL);
assert((wordtablesize==0 && wordtabletop==0 && wordtable==NULL)
|| (wordtablesize>0 && wordtable!=NULL));
if (wordtable!=NULL) {
free(wordtable);
wordtable=NULL;
@@ -339,7 +339,7 @@ SC_FUNC cell get_utf8_char(const unsigned char *string,const unsigned char **end
/* the code positions 0xd800--0xdfff and 0xfffe & 0xffff do not
* exist in UCS-4 (and hence, they do not exist in Unicode)
*/
if (result>=0xd800 && result<=0xdfff || result==0xfffe || result==0xffff)
if ((result>=0xd800 && result<=0xdfff) || result==0xfffe || result==0xffff)
return -1;
} /* if */
break;