[lib][libc|libm] fix a few warnings in imported code
This commit is contained in:
@@ -113,7 +113,7 @@ strtol(const char *nptr, char **endptr, int base)
|
||||
if (any < 0)
|
||||
continue;
|
||||
if (neg) {
|
||||
if (acc < cutoff || acc == cutoff && c > cutlim) {
|
||||
if (acc < cutoff || (acc == cutoff && c > cutlim)) {
|
||||
any = -1;
|
||||
acc = LONG_MIN;
|
||||
errno = ERANGE;
|
||||
@@ -123,7 +123,7 @@ strtol(const char *nptr, char **endptr, int base)
|
||||
acc -= c;
|
||||
}
|
||||
} else {
|
||||
if (acc > cutoff || acc == cutoff && c > cutlim) {
|
||||
if (acc > cutoff || (acc == cutoff && c > cutlim)) {
|
||||
any = -1;
|
||||
acc = LONG_MAX;
|
||||
errno = ERANGE;
|
||||
|
||||
@@ -2,7 +2,7 @@ LOCAL_DIR := $(GET_LOCAL_DIR)
|
||||
|
||||
MODULE := $(LOCAL_DIR)
|
||||
|
||||
MODULE_CFLAGS += -Wno-unused-variable -Wno-sign-compare
|
||||
MODULE_CFLAGS += -Wno-unused-variable -Wno-sign-compare -Wno-parentheses
|
||||
|
||||
GLOBAL_INCLUDES += $(LOCAL_DIR)/include
|
||||
|
||||
|
||||
Reference in New Issue
Block a user