diff options
author | SangYoun Kwak <sy.kwak@samsung.com> | 2022-01-17 14:12:39 +0900 |
---|---|---|
committer | SangYoun Kwak <sy.kwak@samsung.com> | 2022-01-17 14:12:39 +0900 |
commit | 730d4821d89fa8fc20b490384c3b327ca38d7bc9 (patch) | |
tree | 876b4d8a50e9e1ca71b5ef29a7ce13f3e0f92673 | |
parent | 88e1cf580e3c0bba2de12c00ff05a671016539a9 (diff) | |
download | tizen-platform-config-accepted/tizen_8.0_unified.tar.gz tizen-platform-config-accepted/tizen_8.0_unified.tar.bz2 tizen-platform-config-accepted/tizen_8.0_unified.zip |
Cast int to size_t, enclose function with ifdefHEADtizen_8.0_m2_releasetizen_7.0_m2_releasesubmit/tizen/20220117.074530accepted/tizen/unified/20220124.125225accepted/tizen/8.0/unified/20231005.093900accepted/tizen/7.0/unified/hotfix/20221116.105823accepted/tizen/7.0/unified/20221110.061651tizen_8.0tizen_7.0_hotfixtizen_7.0tizenaccepted/tizen_unifiedaccepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unified
Change-Id: I16c69488fea2acdd9e1fff1eba903ae4c40a3522
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
-rw-r--r-- | src/parser.c | 4 | ||||
-rw-r--r-- | src/toolbox.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/parser.c b/src/parser.c index ff480b6..b523c2e 100644 --- a/src/parser.c +++ b/src/parser.c @@ -293,7 +293,7 @@ void parse_utf8_info( pos = length; /* search the begin of the line */ - while ((end - buf) != pos) { + while ((size_t)(end - buf) != pos) { /* dealing utf8 */ colno += ((*end & '\xc0') != '\x80'); /* dealing with lines */ @@ -305,7 +305,7 @@ void parse_utf8_info( } /* search the end of the line */ - while ((end - buf) < length && *end != '\n') + while (((size_t)(end - buf) < length) && (*end != '\n')) end++; /* record computed values */ diff --git a/src/toolbox.c b/src/toolbox.c index 4db0e9a..8f78a9f 100644 --- a/src/toolbox.c +++ b/src/toolbox.c @@ -494,6 +494,7 @@ static int keycmp(const void *a, const void *b) } /* sort the keys and return their count */ +#ifdef SORT_KEYS static int sortkeys() { struct key *key = keys, **array; @@ -527,6 +528,7 @@ static int sortkeys() return count; } +#endif /*======================================================================*/ |