Update of /cvsroot/audacity/audacity-src/src/widgets
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv30748
Modified Files:
ImageRoll.cpp
Log Message:
Minor changes to avoid some GCC warnings. Make sure that all the possible values
of an enum are explicitly handled in the switch-case statement.
Index: ImageRoll.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/ImageRoll.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ImageRoll.cpp 8 Jul 2006 09:48:20 -0000 1.6
+++ ImageRoll.cpp 21 Jan 2007 19:46:36 -0000 1.7
@@ -267,6 +267,14 @@
mMaxSize.y = src.GetHeight();
break;
+ /* Adding these shuts up some GCC warnings. It is functionally what was
+ * implict here before - Richard */
+ case Uninitialized:
+ break;
+
+ case Frame:
+ break;
+
} // switch
}
@@ -394,6 +402,13 @@
case FixedImage:
DrawBitmap(dc, mPieces[0], rect.x, rect.y);
break;
+ /* the other possible cases don't really make sense, but not having them
+ * listed gives a GCC warning */
+ case Uninitialized:
+ break;
+
+ case Frame:
+ break;
} // switch
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs