summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-08-14 02:10:08 (GMT)
committerSung-jae Park <nicesj.park@samsung.com>2013-08-14 02:10:08 (GMT)
commit07e1a4de0b701aa94a82f4876d2e69e096980c87 (patch)
tree1507999dd955bb24f5b944cf33b4f6c2c71c9a9b
parent847e2e8e3abdcf4ef87ee5478ed080434c3e31cb (diff)
downloaddata-provider-master-07e1a4de0b701aa94a82f4876d2e69e096980c87.zip
data-provider-master-07e1a4de0b701aa94a82f4876d2e69e096980c87.tar.gz
data-provider-master-07e1a4de0b701aa94a82f4876d2e69e096980c87.tar.bz2
Supress the build warnings
Change-Id: I5bb789ea2721b1dc34fdcb18a06d9a150b3540ab
-rw-r--r--pkgmgr_livebox/src/service_register.c16
-rw-r--r--src/group.c4
-rw-r--r--src/server.c2
-rw-r--r--src/service_common.c8
-rw-r--r--src/util.c2
-rw-r--r--util_liveinfo/src/liveinfo.c8
6 files changed, 20 insertions, 20 deletions
diff --git a/pkgmgr_livebox/src/service_register.c b/pkgmgr_livebox/src/service_register.c
index 55fff79..01c36be 100644
--- a/pkgmgr_livebox/src/service_register.c
+++ b/pkgmgr_livebox/src/service_register.c
@@ -457,7 +457,7 @@ out:
sqlite3_finalize(stmt);
return ret;
}
-static inline int db_insert_provider(struct livebox *livebox)
+static int db_insert_provider(struct livebox *livebox)
{
static const char *dml;
int ret;
@@ -951,7 +951,7 @@ out:
return ret;
}
-static inline int db_get_group_id(const char *cluster, const char *category)
+static int db_get_group_id(const char *cluster, const char *category)
{
static const char *dml = "SELECT id FROM groupinfo WHERE cluster = ? AND category = ?";
sqlite3_stmt *stmt;
@@ -1313,7 +1313,7 @@ static inline int db_create_box_size(void)
return 0;
}
-static inline int db_insert_box_size(const char *pkgid, int size_type, const char *preview, int touch_effect, int need_frame)
+static int db_insert_box_size(const char *pkgid, int size_type, const char *preview, int touch_effect, int need_frame)
{
static const char *dml;
int ret;
@@ -1468,7 +1468,7 @@ static inline void db_create_table(void)
commit_transaction();
}
-static inline int db_init(void)
+static int db_init(void)
{
int ret;
struct stat stat;
@@ -1518,7 +1518,7 @@ static inline int validate_pkgid(const char *appid, const char *pkgid)
return 1 || !strncmp(appid, pkgid, strlen(appid));
}
-static inline int livebox_destroy(struct livebox *livebox)
+static int livebox_destroy(struct livebox *livebox)
{
struct dlist *l;
struct dlist *n;
@@ -1753,7 +1753,7 @@ static inline void update_content(struct livebox *livebox, xmlNodePtr node)
}
}
-static inline void update_size_info(struct livebox *livebox, int idx, xmlNodePtr node)
+static void update_size_info(struct livebox *livebox, int idx, xmlNodePtr node)
{
if (xmlHasProp(node, (const xmlChar *)"preview")) {
livebox->preview[idx] = xmlGetProp(node, (const xmlChar *)"preview");
@@ -2190,7 +2190,7 @@ static inline void update_pd(struct livebox *livebox, xmlNodePtr node)
}
}
-static inline int db_insert_livebox(struct livebox *livebox, const char *appid)
+static int db_insert_livebox(struct livebox *livebox, const char *appid)
{
struct dlist *l;
struct dlist *il;
@@ -2369,7 +2369,7 @@ errout:
return ret;
}
-static inline int do_install(xmlNodePtr node, const char *appid)
+static int do_install(xmlNodePtr node, const char *appid)
{
struct livebox *livebox;
xmlChar *pkgid;
diff --git a/src/group.c b/src/group.c
index 9ec9e69..ff03488 100644
--- a/src/group.c
+++ b/src/group.c
@@ -485,8 +485,8 @@ HAPI int group_add_livebox(const char *group, const char *pkgname)
{
struct cluster *cluster;
struct category *category;
- struct context_info *info;
- struct context_item *item;
+ struct context_info *info = NULL;
+ struct context_item *item = NULL;
char *key;
char *name;
char *ptr;
diff --git a/src/server.c b/src/server.c
index 8032cb7..617498d 100644
--- a/src/server.c
+++ b/src/server.c
@@ -165,7 +165,7 @@ out:
return ret;
}
-static inline int forward_lb_access_packet(const struct pkg_info *pkg, struct inst_info *inst, const char *command, double timestamp, int x, int y)
+static int forward_lb_access_packet(const struct pkg_info *pkg, struct inst_info *inst, const char *command, double timestamp, int x, int y)
{
int ret;
struct buffer_info *buffer;
diff --git a/src/service_common.c b/src/service_common.c
index f09d60a..13cf05e 100644
--- a/src/service_common.c
+++ b/src/service_common.c
@@ -105,12 +105,12 @@ static void *client_packet_pump_main(void *data)
{
struct tcb *tcb = data;
struct service_context *svc_ctx = tcb->svc_ctx;
- struct packet *packet;
+ struct packet *packet = NULL;
fd_set set;
char *ptr = NULL;
- int size;
- int packet_offset;
- int recv_offset;
+ int size = 0;
+ int packet_offset = 0;
+ int recv_offset = 0;
int pid;
int ret;
int fd;
diff --git a/src/util.c b/src/util.c
index 2349631..04edb03 100644
--- a/src/util.c
+++ b/src/util.c
@@ -238,7 +238,7 @@ HAPI char *util_replace_string(const char *src, const char *pattern, const char
const char *ptr;
char *tmp;
char *ret = NULL;
- int idx;
+ int idx = 0;
int out_idx;
int out_sz;
enum {
diff --git a/util_liveinfo/src/liveinfo.c b/util_liveinfo/src/liveinfo.c
index 8cc024e..0e38a7c 100644
--- a/util_liveinfo/src/liveinfo.c
+++ b/util_liveinfo/src/liveinfo.c
@@ -208,7 +208,7 @@ static void inst_del_cb(struct node *node)
free(info);
}
-static inline void ls(void)
+static void ls(void)
{
struct node *node;
int cnt = 0;
@@ -698,7 +698,7 @@ static inline int do_stat(const char *cmd)
return 0;
}
-static inline int do_set(const char *cmd)
+static int do_set(const char *cmd)
{
int i;
char variable[4096] = { '0', };
@@ -852,7 +852,7 @@ static inline int do_rm(const char *cmd)
#define WCOREDUMP(a) 0
#endif
-static inline void do_sh(const char *cmd)
+static void do_sh(const char *cmd)
{
pid_t pid;
@@ -995,7 +995,7 @@ static inline int do_capture(Display *disp, Pixmap id, const char *filename)
return 0;
}
-static inline void do_x(const char *cmd)
+static void do_x(const char *cmd)
{
Display *disp;