diff options
author | Abhishek Vijay <abhishek.v@samsung.com> | 2020-01-07 15:25:52 +0530 |
---|---|---|
committer | Abhishek Vijay <abhishek.v@samsung.com> | 2020-01-07 15:25:52 +0530 |
commit | 93f5412bf440e5b10c6920347af0acf600126b00 (patch) | |
tree | 816b249ca060b7ecd5838373392fc0533228107a | |
parent | 7e054bf6834cde6e5c9de895c8e2b0d7f1a094c5 (diff) | |
download | sync-manager-93f5412bf440e5b10c6920347af0acf600126b00.tar.gz sync-manager-93f5412bf440e5b10c6920347af0acf600126b00.tar.bz2 sync-manager-93f5412bf440e5b10c6920347af0acf600126b00.zip |
[Tizen 6.0] enable build with GCC 9.2
Change-Id: I5039a8865ddeeeef6f4a099203afa5db8cef6f23
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
-rw-r--r-- | src/sync-service/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/sync-service/SyncManager_RepositoryEngine.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/sync-service/CMakeLists.txt b/src/sync-service/CMakeLists.txt index eeee79c..13fcf03 100644 --- a/src/sync-service/CMakeLists.txt +++ b/src/sync-service/CMakeLists.txt @@ -109,7 +109,7 @@ FOREACH(flag ${PKGS_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") ENDFOREACH(flag) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fvisibility=hidden -fPIE") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fvisibility=hidden -fPIE -Wno-psabi") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_C_FLAGS}") SET(PKGS_LDFLAGS "${PKGS_LDFLAGS} -pie") diff --git a/src/sync-service/SyncManager_RepositoryEngine.cpp b/src/sync-service/SyncManager_RepositoryEngine.cpp index 7ed6243..4d54054 100644 --- a/src/sync-service/SyncManager_RepositoryEngine.cpp +++ b/src/sync-service/SyncManager_RepositoryEngine.cpp @@ -1720,10 +1720,10 @@ RepositoryEngine::InsertSyncJobToDB(const char *SvcAppId, const char *PkgName, i snprintf(accId, sizeof(accId) - 1, "%d", AccountId); char interval[16] = { 0, }; snprintf(interval, sizeof(interval) - 1, "%d", Interval); - char expedit[2] = { 0, }; - snprintf(expedit, sizeof(expedit) - 1, "%d", Option & SYNC_OPTION_EXPEDITED); - char noRetry[2] = { 0, }; - snprintf(noRetry, sizeof(noRetry) - 1, "%d", Option & SYNC_OPTION_NO_RETRY); + char expedit[16] = { 0, }; + snprintf(expedit, sizeof(expedit) - 1, "%d", (Option & SYNC_OPTION_EXPEDITED)); + char noRetry[16] = { 0, }; + snprintf(noRetry, sizeof(noRetry) - 1, "%d", (Option & SYNC_OPTION_NO_RETRY)); if (UserData) { bundle_iterate(UserData, bundIterCb, NULL); @@ -1930,9 +1930,9 @@ RepositoryEngine::UpdateSyncJobToDB(const char *SvcAppId, int UserId, const char snprintf(accId, sizeof(accId) - 1, "%d", AccountId); char interval[16] = { 0, }; snprintf(interval, sizeof(interval) - 1, "%d", Interval); - char expedit[2] = { 0, }; + char expedit[16] = { 0, }; snprintf(expedit, sizeof(expedit) - 1, "%d", Option & SYNC_OPTION_EXPEDITED); - char noRetry[2] = { 0, }; + char noRetry[16] = { 0, }; snprintf(noRetry, sizeof(noRetry) - 1, "%d", Option & SYNC_OPTION_NO_RETRY); if (UserData) { |