1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
--- openhackware-0.4.1+git-20140423.c559da7c.orig/src/bloc.c
+++ openhackware-0.4.1+git-20140423.c559da7c/src/bloc.c
@@ -1249,6 +1249,7 @@ static int mem_ioctl (bloc_device_t *bd,
case MEM_SET_SIZE:
u32 = args;
bd->trks = (*u32 + bd->seclen - 1) / bd->seclen + 1;
+ __attribute__((fallthrough));
default:
ret = -1;
break;
--- openhackware-0.4.1+git-20140423.c559da7c.orig/src/char.c
+++ openhackware-0.4.1+git-20140423.c559da7c/src/char.c
@@ -154,6 +154,7 @@ int console_open (void)
CHARDEV_DPRINTF("one serial port\n");
register_outd = 1;
/* No break here */
+ __attribute__((fallthrough));
case CHARDEV_KBD:
CHARDEV_DPRINTF("one input port %d %d\n", n, i);
if (i < 16 && chardev_open(cur) == 0) {
@@ -162,6 +163,7 @@ int console_open (void)
if (!register_outd)
break;
/* No break here */
+ __attribute__((fallthrough));
case CHARDEV_DISPLAY:
CHARDEV_DPRINTF("one output port %d %d\n", n, j);
if (j < 16 && chardev_open(cur) == 0) {
@@ -587,6 +589,7 @@ int adb_cmd (adb_dev_t *dev, uint8_t cmd
case ADB_LISTEN:
memcpy(adb_send + 1, buf, len);
/* No break here */
+ __attribute__((fallthrough));
case ADB_TALK:
adb_send[0] = (dev->addr << 4) | cmd | reg;
break;
--- openhackware-0.4.1+git-20140423.c559da7c.orig/src/libc/src/format.c
+++ openhackware-0.4.1+git-20140423.c559da7c/src/libc/src/format.c
@@ -281,6 +281,7 @@ int _vprintf(outf_t outf, void *private,
goto next;
}
/* No break here */
+ __attribute__((fallthrough));
case '1' ... '9':
switch (maxfill) {
case -2:
@@ -350,6 +351,7 @@ int _vprintf(outf_t outf, void *private,
goto invalid;
} else {
tmp = outc(outf, private, '%', maxlen - totlen);
+ __attribute__((fallthrough));
}
default:
invalid:
--- openhackware-0.4.1+git-20140423.c559da7c.orig/src/of.c
+++ openhackware-0.4.1+git-20140423.c559da7c/src/of.c
@@ -3000,7 +3000,7 @@ void OF_finalize_pci_ide (void *dev,
{
OF_env_t *OF_env = OF_env_main;
OF_node_t *pci_ata = dev;
- OF_node_t *ata, *atas[2];
+ OF_node_t *ata, *atas[2] = { NULL };
int i;
OF_prop_int_new(OF_env, pci_ata, "#address-cells", 1);
|