From 093b264a977d5426c3507d5bdaf1196c4607b0d5 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Wed, 26 Nov 2014 11:46:48 +1100 Subject: Make lpc_interrupt() attribute const It's a placeholder at the moment, which makes it easy to say "this never gives a different answer". It also silences our one compiler warning: hw/lpc.c: In function 'lpc_interrupt': hw/lpc.c:457:6: warning: function might be candidate for attribute 'const' [-Wsuggest-attribute=const] Signed-off-by: Stewart Smith --- hw/lpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/lpc.c') diff --git a/hw/lpc.c b/hw/lpc.c index 96d3e39..d09692a 100644 --- a/hw/lpc.c +++ b/hw/lpc.c @@ -454,7 +454,7 @@ bool lpc_present(void) return lpc_default_chip_id >= 0; } -void lpc_interrupt(uint32_t chip_id __unused) +void __attrconst lpc_interrupt(uint32_t chip_id __unused) { /* Handle the lpc interrupt source (errors etc...) TODO... */ } -- cgit v1.1