Bug 666677: Fix build warning about unhandled case in nsDeflateConverter.cpp switch statement. r=Mossop
authorAtul Aggarwal <atulagrwl@gmail.com>
Thu, 01 Sep 2011 15:21:44 -0700
changeset 77736 1a78f5c53b5847d41fc680b511d8fd1b964008f3
parent 77735 3959615183f608d31012335eb7632545e4b989a1
child 77737 bff12708b423cef63dff3bfe0f3d479e2e8206c7
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop
bugs666677
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 666677: Fix build warning about unhandled case in nsDeflateConverter.cpp switch statement. r=Mossop
modules/libjar/zipwriter/src/nsDeflateConverter.cpp
--- a/modules/libjar/zipwriter/src/nsDeflateConverter.cpp
+++ b/modules/libjar/zipwriter/src/nsDeflateConverter.cpp
@@ -71,16 +71,18 @@ nsresult nsDeflateConverter::Init()
     PRInt32 window = MAX_WBITS;
     switch (mWrapMode) {
         case WRAP_NONE:
             window = -window;
             break;
         case WRAP_GZIP:
             window += 16;
             break;
+        default:
+            break;
     }
 
     zerr = deflateInit2(&mZstream, mLevel, Z_DEFLATED, window, 8,
                         Z_DEFAULT_STRATEGY);
     if (zerr != Z_OK) return NS_ERROR_OUT_OF_MEMORY;
 
     mZstream.next_out = mWriteBuffer;
     mZstream.avail_out = sizeof(mWriteBuffer);