Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: fusl/src/locale/locale_map.c

Issue 1575153003: Remove -Wno-logical-op-parentheses for fusl build (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/src/locale/iconv.c ('k') | fusl/src/passwd/getgr_a.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/locale/locale_map.c
diff --git a/fusl/src/locale/locale_map.c b/fusl/src/locale/locale_map.c
index c3e591746fb00aeddeec0d8e5a10f25ccc006691..db6fae598d10cbae0d263b0d8cc8cdaa36b146fc 100644
--- a/fusl/src/locale/locale_map.c
+++ b/fusl/src/locale/locale_map.c
@@ -35,9 +35,9 @@ const struct __locale_map *__get_locale(int cat, const char *val)
size_t l, n;
if (!*val) {
- (val = getenv("LC_ALL")) && *val ||
- (val = getenv(envvars[cat])) && *val ||
- (val = getenv("LANG")) && *val ||
+ ((val = getenv("LC_ALL")) && *val) ||
viettrungluu 2016/01/12 18:43:18 This makes me puke in my mouth....
+ ((val = getenv(envvars[cat])) && *val) ||
+ ((val = getenv("LANG")) && *val) ||
(val = "C.UTF-8");
}
« no previous file with comments | « fusl/src/locale/iconv.c ('k') | fusl/src/passwd/getgr_a.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698