]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commitdiff
fmopl: workaround for -Wempty-body
authormalc <av1474@comtv.ru>
Thu, 23 Sep 2010 18:16:15 +0000 (22:16 +0400)
committermalc <av1474@comtv.ru>
Fri, 24 Sep 2010 00:09:01 +0000 (04:09 +0400)
Signed-off-by: malc <av1474@comtv.ru>
hw/fmopl.c

index d1161f848fe980e8d7e72a61741c0be056b47c6b..3df1806a912001316f21059598e096988066cf38 100644 (file)
@@ -1342,8 +1342,9 @@ unsigned char OPLRead(FM_OPL *OPL,int a)
                {
                        if(OPL->keyboardhandler_r)
                                return OPL->keyboardhandler_r(OPL->keyboard_param);
-                       else
+                       else {
                                LOG(LOG_WAR,("OPL:read unmapped KEYBOARD port\n"));
+                       }
                }
                return 0;
 #if 0
@@ -1355,8 +1356,9 @@ unsigned char OPLRead(FM_OPL *OPL,int a)
                {
                        if(OPL->porthandler_r)
                                return OPL->porthandler_r(OPL->port_param);
-                       else
+                       else {
                                LOG(LOG_WAR,("OPL:read unmapped I/O port\n"));
+                       }
                }
                return 0;
        case 0x1a: /* PCM-DATA    */