From 48c54c4bd394529805ca9fba24abb01896185e7c Mon Sep 17 00:00:00 2001 From: Kamil Date: Thu, 25 Apr 2013 13:12:22 +0200 Subject: [PATCH] Fixing warnings in wrt-installer repository [Issue#] LINUXWRT-271 [Problem] Too many warnings [Cause] N/A [Solution] Preventing them [Verification] Build wrt-installer repository Change-Id: Ibd41be4dd3546dad6fdfa3eda65e44973f43f1d8 --- src/jobs/widget_install/task_smack.cpp | 2 ++ src/pkg-manager/backendlib.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jobs/widget_install/task_smack.cpp b/src/jobs/widget_install/task_smack.cpp index e6db95a..9857bf7 100644 --- a/src/jobs/widget_install/task_smack.cpp +++ b/src/jobs/widget_install/task_smack.cpp @@ -35,7 +35,9 @@ namespace { const int MAX_BUF_SIZE = 128; +#ifdef WRT_SMACK_ENABLED const char* SMACK_RULE_STR = "/usr/bin/smackload-app.sh"; +#endif } namespace Jobs { diff --git a/src/pkg-manager/backendlib.cpp b/src/pkg-manager/backendlib.cpp index bdda87d..3786026 100644 --- a/src/pkg-manager/backendlib.cpp +++ b/src/pkg-manager/backendlib.cpp @@ -464,7 +464,7 @@ pkgmgr_info *pkgmgr_client_check_pkginfo_from_file(const char *pkg_path) LogError("Failed to get package detail info "); return NULL; } - return &pkg_detail_info; + return reinterpret_cast(pkg_detail_info); } __attribute__ ((visibility("default"))) -- 2.7.4