Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/stand/boot2440 Inform compiler that the vola...



details:   https://anonhg.NetBSD.org/src/rev/8fd596290d9e
branches:  trunk
changeset: 791774:8fd596290d9e
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Dec 01 02:52:53 2013 +0000

description:
Inform compiler that the volatile assignment will terminate the function.

diffstat:

 sys/arch/evbarm/stand/boot2440/main.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r fd2aba5ba251 -r 8fd596290d9e sys/arch/evbarm/stand/boot2440/main.c
--- a/sys/arch/evbarm/stand/boot2440/main.c     Sun Dec 01 02:34:54 2013 +0000
+++ b/sys/arch/evbarm/stand/boot2440/main.c     Sun Dec 01 02:52:53 2013 +0000
@@ -498,6 +498,7 @@
        *(volatile uint32_t *)(S3C2440_WDT_BASE + WDT_WTCON) =
                (0 << WTCON_PRESCALE_SHIFT) | WTCON_ENABLE |
                WTCON_CLKSEL_16 | WTCON_ENRST;
+       __builtin_unreachable();
 }
 
 void



Home | Main Index | Thread Index | Old Index