netmail-open / wjelement

advanced, flexible JSON manipulation in C
GNU Lesser General Public License v3.0
108 stars 56 forks source link

Build warnings with -Wparentheses #76

Closed jeffreyleifer closed 6 years ago

jeffreyleifer commented 6 years ago

wjelement/src/wjelement/schema.c: In function ‘SchemaValidate’: wjelement/src/wjelement/schema.c:429:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(str = WJEString(schema, "[\"$ref\"]", WJE_GET, NULL)) { ^ wjelement/src/wjelement/schema.c:652:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(sub = WJEObject(schema, "properties", WJE_GET)) {

penduin commented 6 years ago

Thanks @jeffreyleifer ! I've fixed this in 4a39d7f..e264361