Fix warning.
authorPeter Van der Beken <peterv@propagandism.org>
Thu, 08 Apr 2010 14:07:28 +0200
changeset 40624 f99c1af1e1c11f11307c8a84acbce3430cee26d5
parent 40623 65aca11d2b37aaaca9f0d45a7d9f799a8e80d3fc
child 40625 647dd06b64fef56a895748fd76aa206e1a0b0e71
push idunknown
push userunknown
push dateunknown
milestone1.9.3a5pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
Fix warning.
dom/base/nsDOMClassInfoID.h
js/src/xpconnect/src/nsDOMQS.h
--- a/dom/base/nsDOMClassInfoID.h
+++ b/dom/base/nsDOMClassInfoID.h
@@ -99,17 +99,17 @@ DOMCI_CASTABLE_INTERFACE(nsICSSDeclarati
  */
 #define DOMCI_CASTABLE_INTERFACE(_interface, _bit, _extra)                    \
 class _interface;                                                             \
 inline PRUint32 Implements_##_interface(_interface *foo)                      \
   { return 1 << _bit; }                                                       \
 inline PRUint32 Implements_##_interface(void *foo)                            \
   { return 0; }
 
-DOMCI_CASTABLE_INTERFACES()
+DOMCI_CASTABLE_INTERFACES(unused)
 
 #undef DOMCI_CASTABLE_INTERFACE
 
 /**
  * Here we calculate the bitmap for a given class. We'll call the functions
  * defined above with (_class*)nsnull. If the class implements an interface,
  * that function will return (1 << bit), if it doesn't the function returns 0.
  * We just make the sum of all the values returned from the functions to
--- a/js/src/xpconnect/src/nsDOMQS.h
+++ b/js/src/xpconnect/src/nsDOMQS.h
@@ -74,13 +74,13 @@ xpc_qsUnwrapArg<_interface>(JSContext *c
     if(NS_SUCCEEDED(rv))                                                      \
         *ppArg = static_cast<_interface*>(native);                            \
     return rv;                                                                \
 }
 
 #define DOMCI_CASTABLE_INTERFACE(_interface, _bit, _extra)                    \
   DEFINE_UNWRAP_CAST(_interface, _bit)
 
-DOMCI_CASTABLE_INTERFACES()
+DOMCI_CASTABLE_INTERFACES(unused)
 
 #undef DOMCI_CASTABLE_INTERFACE
 
 #endif /* nsDOMQS_h__ */