banshee r4198 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.MediaProfiles src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod



Author: abock
Date: Wed Jun 25 15:25:09 2008
New Revision: 4198
URL: http://svn.gnome.org/viewvc/banshee?rev=4198&view=rev

Log:
2008-06-25  Aaron Bockover  <abock gnome org>

    This commit fixes two new errors exposed due to fixes in gmcs trunk

    * src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/PodSleuthDevice.cs: Due to
    different assignment evaluation, type checking happens differently so
    int can't be assigned to short during zero-value initialization
    
    * src/Core/Banshee.Services/Banshee.MediaProfiles/MediaProfileManager.cs:
    Update ignore pragma for the different (more correct) warning 
    that is thrown now



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.Services/Banshee.MediaProfiles/MediaProfileManager.cs
   trunk/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/PodSleuthDevice.cs

Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.MediaProfiles/MediaProfileManager.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.MediaProfiles/MediaProfileManager.cs	(original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.MediaProfiles/MediaProfileManager.cs	Wed Jun 25 15:25:09 2008
@@ -255,11 +255,11 @@
         public int AvailableProfileCount {
             get {
                 int count = 0;
-                #pragma warning disable 0168
+                #pragma warning disable 0168, 0219
                 foreach(Profile profile in GetAvailableProfiles()) {
                     count++;
                 }
-                #pragma warning restore 0168
+                #pragma warning restore 0168, 0219
                 return count;
             }
         }

Modified: trunk/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/PodSleuthDevice.cs
==============================================================================
--- trunk/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/PodSleuthDevice.cs	(original)
+++ trunk/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/PodSleuthDevice.cs	Wed Jun 25 15:25:09 2008
@@ -204,7 +204,8 @@
                 int size;
                 PixelFormat pformat;
 
-                correlationId = width = height = rotation = size = 0;
+                size = 0;
+                correlationId = width = height = rotation = 0;
                 usage = ArtworkUsage.Unknown;
                 pformat = PixelFormat.Unknown;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]