Bug 967871: Wrap nsDocumentViewer.cpp's sPrintOptionsContractID variable in #ifdef DEBUG, to fix 'unused variable' build warning in opt builds. r=mats
authorDaniel Holbert <dholbert@cs.stanford.edu>
Wed, 05 Feb 2014 18:39:56 -0800
changeset 178135 ad19b44cab095f2f9c732649c1af672b40647217
parent 178134 c128bfd65bf9122d43aa275035c73416e701c6bb
child 178136 ae20eb00cabf4cd28078977844756259f9d68070
push id5439
push userffxbld
push dateMon, 17 Mar 2014 23:08:15 +0000
treeherdermozilla-aurora@c0befb3c8038 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmats
bugs967871
milestone30.0a1
Bug 967871: Wrap nsDocumentViewer.cpp's sPrintOptionsContractID variable in #ifdef DEBUG, to fix 'unused variable' build warning in opt builds. r=mats
layout/base/nsDocumentViewer.cpp
--- a/layout/base/nsDocumentViewer.cpp
+++ b/layout/base/nsDocumentViewer.cpp
@@ -90,18 +90,21 @@
 
 #include "nsPrintEngine.h"
 
 // Print Options
 #include "nsIPrintSettings.h"
 #include "nsIPrintOptions.h"
 #include "nsISimpleEnumerator.h"
 
+#ifdef DEBUG
 // PrintOptions is now implemented by PrintSettingsService
-static const char sPrintOptionsContractID[]         = "@mozilla.org/gfx/printsettings-service;1";
+static const char sPrintOptionsContractID[] =
+  "@mozilla.org/gfx/printsettings-service;1";
+#endif // DEBUG
 
 #include "nsIPluginDocument.h"
 
 #endif // NS_PRINTING
 
 //focus
 #include "nsIDOMEventTarget.h"
 #include "nsIDOMEventListener.h"