translate-all: Mark map_exec() with the 'unused' attribute
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 23 Dec 2014 22:26:54 +0000 (22:26 +0000)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 2 Jun 2015 03:09:17 +0000 (12:09 +0900)
commit53190cc7ae512b54228645523e20bac10074dbb8
tree6c690c60d374eff5883abbf9797ba7f66b7fe4d2
parentfe8c35cd994f124fd6142c64b596786824572211
translate-all: Mark map_exec() with the 'unused' attribute

Mark map_exec() with the 'unused' attribute to avoid '-Wunused-function'
warnings on clang 3.4 or later. This means we don't need to mark it
'inline', which is what we were previously using to suppress the warning
(a trick which only works with gcc, not clang).

Change-Id: Ic9faa221ff73082c6b15e68bdef31cc9bccd0ed1
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
[PMM: tweaked comment message a little]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
translate-all.c