Received: from eggs.gnu.org ([2001:4830:134:3::10]:42552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlCkd-0003oJ-GT for qemu-devel@nongnu.org; Mon, 03 Nov 2014 03:12:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlCkW-0006hA-3V for qemu-devel@nongnu.org; Mon, 03 Nov 2014 03:12:35 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:20396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlCkV-0006go-Pm for qemu-devel@nongnu.org; Mon, 03 Nov 2014 03:12:28 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NEG000HIESOXC40@mailout4.samsung.com> for qemu-devel@nongnu.org; Mon, 03 Nov 2014 17:12:24 +0900 (KST) From: SeokYeon Hwang Date: Mon, 03 Nov 2014 17:11:52 +0900 Message-id: <1415002312-30827-1-git-send-email-syeon.hwang@samsung.com> Subject: [Qemu-devel] [PATCH v2] translate-all: Marked map_exec() with the 'unused' attribute List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, SeokYeon Hwang Marked map_exec() with the 'unused' attribute to avoid '-Wunused-function' on clang 3.4 or later. Signed-off-by: SeokYeon Hwang --- translate-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translate-all.c b/translate-all.c index ba5c840..9d150fb 100644 --- a/translate-all.c +++ b/translate-all.c @@ -270,14 +270,14 @@ bool cpu_restore_state(CPUState *cpu, uintptr_t retaddr) } #ifdef _WIN32 -static inline void map_exec(void *addr, long size) +static __attribute__((unused)) void map_exec(void *addr, long size) { DWORD old_protect; VirtualProtect(addr, size, PAGE_EXECUTE_READWRITE, &old_protect); } #else -static inline void map_exec(void *addr, long size) +static __attribute__((unused)) void map_exec(void *addr, long size) { unsigned long start, end, page_size; -- 2.1.0