r14511 by jghali - shuts some annoying gcc warnings

scribus-commit scribus-commit at lists.scribus.net
Mon Jan 11 01:20:19 CET 2010


Revision: 14511
Author: jghali
Date: 2010-01-10T11:03:00.605465Z
Commit message: shuts some annoying gcc warnings

Changeset: 
M  /trunk/Scribus/scribus/colormgmt/sccolorspacedata.cpp
M  /trunk/Scribus/scribus/colormgmt/sccolormgmtstructs.cpp

Diffs:
Index: scribus/colormgmt/sccolorspacedata.cpp
===================================================================
--- scribus/colormgmt/sccolorspacedata.cpp	(revision 14510)
+++ scribus/colormgmt/sccolorspacedata.cpp	(revision 14511)
@@ -5,6 +5,7 @@
 for which a new license (GPL+exception) is in place.
 */
 
+#include <stdlib.h>
 #include "sccolorspacedata.h"
 #include "sccolormgmtengine.h"
 
Index: scribus/colormgmt/sccolormgmtstructs.cpp
===================================================================
--- scribus/colormgmt/sccolormgmtstructs.cpp	(revision 14510)
+++ scribus/colormgmt/sccolormgmtstructs.cpp	(revision 14511)
@@ -87,6 +87,9 @@
 	case Format_LabA_8:
 		channels = 4;
 		break;
+	default: // For the pure sake of shutting gcc up
+		channels = 0;
+		break;
 	}
 	return channels;
 }
@@ -117,6 +120,9 @@
 	case Format_GRAY_16:
 		bytes = 2;
 		break;
+	default: // For the pure sake of shutting gcc up
+		bytes = 0;
+		break;
 	}
 	return bytes;
 }
@@ -137,6 +143,9 @@
 	case Format_LabA_8:
 		hasAlpha = true;
 		break;
+	default: // For the pure sake of shutting gcc up
+		hasAlpha = false;
+		break;
 	}
 	return hasAlpha;
 }




More information about the scribus-commit mailing list