commit | a6ede6c7ad46b5e2b8eddddca5590c0b745b045a | [log] [tgz] |
---|---|---|
author | Lucas De Marchi <lucas.demarchi@intel.com> | Wed Aug 10 12:42:12 2016 -0300 |
committer | Lucas De Marchi <lucas.demarchi@intel.com> | Wed Aug 10 12:45:36 2016 -0300 |
tree | b146cda66004e346e8665b8fe03bfbd066780597 | |
parent | 53d3a99cccf08016eff0351884e7e86a658dffd6 [diff] |
util: fix warning of equal values on logical OR shared/util.c: In function ‘read_str_safe’: shared/util.c:211:24: warning: logical ‘or’ of equal expressions [-Wlogical-op] if (errno == EAGAIN || errno == EWOULDBLOCK || ^~ shared/util.c: In function ‘write_str_safe’: shared/util.c:237:24: warning: logical ‘or’ of equal expressions [-Wlogical-op] if (errno == EAGAIN || errno == EWOULDBLOCK || ^~ This is because EAGAIN and EWOULDBLOCK have the same value. Prefer EAGAIN, but add a static assert to catch if it's not the same in another architecture.
This is a mirror only. Please see README file for more information.