summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjinwang.an <jinwang.an@samsung.com>2020-01-03 11:50:13 +0900
committerjinwang.an <jinwang.an@samsung.com>2020-01-03 11:50:13 +0900
commit49065034f60fd22314fc80cc9645d2e44d8e8ed6 (patch)
treea80e5ee9e4f1051edbe1876760ecfd6d64465377
parent67424f7d01403431de08c0f078e25c28ef7d81f0 (diff)
downloadwatch-setting-49065034f60fd22314fc80cc9645d2e44d8e8ed6.tar.gz
watch-setting-49065034f60fd22314fc80cc9645d2e44d8e8ed6.tar.bz2
watch-setting-49065034f60fd22314fc80cc9645d2e44d8e8ed6.zip
Change-Id: I72c9a91fb0afdbb6965ee7c7e2b8b4e0163112f1 Signed-off-by: jinwang.an <jinwang.an@samsung.com>
-rw-r--r--packaging/org.tizen.watch-setting.spec2
-rw-r--r--src/setting-clock.c2
-rw-r--r--src/setting-datausage.c2
-rw-r--r--src/setting-sound.c2
4 files changed, 5 insertions, 3 deletions
diff --git a/packaging/org.tizen.watch-setting.spec b/packaging/org.tizen.watch-setting.spec
index ae203ed..f4b4872 100644
--- a/packaging/org.tizen.watch-setting.spec
+++ b/packaging/org.tizen.watch-setting.spec
@@ -94,6 +94,8 @@ export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
%endif
+export CFLAGS+=" -Wall"
+export CXXFLAGS+=" -Wall"
LDFLAGS+="-Wl,--rpath=%{PREFIX}/lib -Wl,--as-needed -Wl,--hash-style=both"; export LDFLAGS
cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} \
-DTZ_SYS_RO_APP=%{TZ_SYS_RO_APP} \
diff --git a/src/setting-clock.c b/src/setting-clock.c
index 1f3b003..65cbf87 100644
--- a/src/setting-clock.c
+++ b/src/setting-clock.c
@@ -1206,7 +1206,7 @@ char *_gl_clock_title_get(void *data, Evas_Object *obj, const char *part)
{
int font_size = -1;
char *font_name = NULL;
- char font_buf[__SETTING_BUF_SIZE__] = {0, };
+ char font_buf[500] = {0, };
char *text_color = "<font color=#4DCFFFC9>%s</font>";
char *text_color_two_args = "<font color=#4DCFFFC9>%s.%s</font>";
if (system_settings_get_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, &font_name)
diff --git a/src/setting-datausage.c b/src/setting-datausage.c
index ccbe38e..7c827b4 100644
--- a/src/setting-datausage.c
+++ b/src/setting-datausage.c
@@ -990,7 +990,7 @@ void _data_usage_detail_cb(void *data, Evas_Object *obj, void *event_info)
time_t now;
struct tm ts;
char mon[32];
- char buf[256];
+ char buf[1024];
char total[256];
char unit[8];
diff --git a/src/setting-sound.c b/src/setting-sound.c
index 39ea718..a370729 100644
--- a/src/setting-sound.c
+++ b/src/setting-sound.c
@@ -381,7 +381,7 @@ static char *_get_sound_file_name(char *full_name)
char sep[] = "*/*";
char *saveptr = NULL;
- DBG("Setting - %s, %s", token, full_name);
+ DBG("Setting - %s", full_name);
strtok_r(full_name, sep, &saveptr);