From: Tomasz Iwanek Date: Mon, 11 Feb 2013 11:08:54 +0000 (+0100) Subject: Compilation Warnings - Part 3 X-Git-Tag: submit/trunk/20130222.060026~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12e0ba30bbb9f593dde4994d8ad2d5a5c6bc0d84;p=platform%2Fframework%2Fweb%2Fwrt-commons.git Compilation Warnings - Part 3 [Issue#] LINUXWRT-6 [Bug] Compilation warnings [Cause] N/A [Solution] Remove them [Verification] Check buildbot status Change-Id: I596584b28b346eb871e9cec1861888eecbfee097 --- diff --git a/3rdparty/minizip/miniunz.c b/3rdparty/minizip/miniunz.c index 233e52d..c8c4904 100644 --- a/3rdparty/minizip/miniunz.c +++ b/3rdparty/minizip/miniunz.c @@ -37,6 +37,7 @@ #ifdef unix # include # include +# include #else # include # include diff --git a/modules/dbus/config.cmake b/modules/dbus/config.cmake index 995c071..f2fefde 100644 --- a/modules/dbus/config.cmake +++ b/modules/dbus/config.cmake @@ -40,6 +40,7 @@ SET(DPL_DBUS_HEADERS ${PROJECT_SOURCE_DIR}/modules/dbus/include/dpl/dbus/dbus_server_serialization.h ${PROJECT_SOURCE_DIR}/modules/dbus/include/dpl/dbus/dbus_signature.h ${PROJECT_SOURCE_DIR}/modules/dbus/include/dpl/dbus/dispatcher.h + ${PROJECT_SOURCE_DIR}/modules/dbus/include/dpl/dbus/glib_util.h ${PROJECT_SOURCE_DIR}/modules/dbus/include/dpl/dbus/exception.h ${PROJECT_SOURCE_DIR}/modules/dbus/include/dpl/dbus/interface.h ${PROJECT_SOURCE_DIR}/modules/dbus/include/dpl/dbus/method_proxy.h diff --git a/modules/dbus/include/dpl/dbus/connection.h b/modules/dbus/include/dpl/dbus/connection.h index 92a8ad3..4a455ad 100644 --- a/modules/dbus/include/dpl/dbus/connection.h +++ b/modules/dbus/include/dpl/dbus/connection.h @@ -26,11 +26,11 @@ #include #include #include -#include #include #include #include #include +#include namespace DPL { namespace DBus { diff --git a/modules/dbus/include/dpl/dbus/glib_util.h b/modules/dbus/include/dpl/dbus/glib_util.h new file mode 100644 index 0000000..13206e3 --- /dev/null +++ b/modules/dbus/include/dpl/dbus/glib_util.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/* + * @file glib_util.h + * @author Iwanek Tomasz (t.iwanek@samsung.com) + * @version 1.0 + * @brief This file is the definitions of loop controlling utilities + */ +#ifndef GLIB_UTIL_H +#define GLIB_UTIL_H + +//this header wraps glib headers which generates warnings + +#pragma GCC system_header +#include + +#endif // GLIB_UTIL_H diff --git a/tests/common/include/glib_interface.h b/tests/common/include/glib_interface.h new file mode 100644 index 0000000..5629f99 --- /dev/null +++ b/tests/common/include/glib_interface.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/* + * @file glib_interface.h + * @author Iwanek Tomasz (t.iwanek@samsung.com) + * @version 1.0 + * @brief This file is the definitions of loop controlling utilities + */ + +#ifndef GLIB_INTERFACE_H +#define GLIB_INTERFACE_H + +//this header wraps glib headers which generates warnings + +#pragma GCC system_header +#include +#include + +#endif // GLIB_INTERFACE_H diff --git a/tests/common/src/loop_control.cpp b/tests/common/src/loop_control.cpp index 2eb85cb..4855288 100644 --- a/tests/common/src/loop_control.cpp +++ b/tests/common/src/loop_control.cpp @@ -20,14 +20,12 @@ * @brief This is implementation of EFL version of loop control */ +#include #include #include #include -#include -#include - namespace LoopControl { void init_loop(int argc, char *argv[]) {