Bug 501840 - Avoid a warning when a cycle collection participant doesn't use tmp. r+sr=peterv

This commit is contained in:
Blake Kaplan 2009-07-16 13:06:26 -07:00
Родитель 68d72bb822
Коммит 131298a1b3
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -481,7 +481,11 @@ public:
#define NS_IMPL_CYCLE_COLLECTION_TRACE_JS_MEMBER_CALLBACK(_field) \
NS_IMPL_CYCLE_COLLECTION_TRACE_JS_CALLBACK(tmp->_field)
// NB: The (void)tmp; hack in the TRACE_END macro exists to support
// implementations that don't need to do anything in their Trace method.
// Without this hack, some compilers warn about the unused tmp local.
#define NS_IMPL_CYCLE_COLLECTION_TRACE_END \
(void)tmp; \
}
///////////////////////////////////////////////////////////////////////////////