Peter Jones | 8 Dec 18:58 2003
Picon

gcc warning cleanups, exclusive opening of devices

Hi everybody. 

Red Hat's builds of cdparanoia currently have 3 patches which aren't in 
the main CVS tree.  I'd like to run these by you guys, and if nobody has 
anything against them, I can put them in CVS.

The first is a cleanup of interface/utils.h to remove some gcc3 warning 
messages.  It doesn't change any actual behavior at all, just some C 
style.  GCC doesn't like labels in switches that don't have any associated 
code.

--- cdparanoia-III-alpha9.8/interface/utils.h.labels    2003-05-06 10:35:43.000000000 -0400
+++ cdparanoia-III-alpha9.8/interface/utils.h   2003-05-06 10:36:05.000000000 -0400
 <at>  <at>  -110,8 +110,6  <at>  <at> 
     case CDDA_MESSAGE_LOGIT:
       d->errorbuf=catstring(d->errorbuf,s);
       break;
-    case CDDA_MESSAGE_FORGETIT:
-    default:
     }
   }
 }
 <at>  <at>  -125,8 +123,6  <at>  <at> 
     case CDDA_MESSAGE_LOGIT:
       d->messagebuf=catstring(d->messagebuf,s);
       break;
-    case CDDA_MESSAGE_FORGETIT:
-    default:
     }
   }
(Continue reading)


Gmane