зеркало из https://github.com/mozilla/gecko-dev.git
Eliminate warnings, clean up assertion translation.
This commit is contained in:
Родитель
5e667ae978
Коммит
fa309dd75b
|
@ -77,8 +77,8 @@
|
|||
#else
|
||||
|
||||
#define ENTRY_STORE_EXTRA 0
|
||||
#define INCREMENT_RECURSION_LEVEL(table_) 1
|
||||
#define DECREMENT_RECURSION_LEVEL(table_) 0
|
||||
#define INCREMENT_RECURSION_LEVEL(table_) ((void)1)
|
||||
#define DECREMENT_RECURSION_LEVEL(table_) ((void)0)
|
||||
|
||||
#endif /* defined(DEBUG) */
|
||||
|
||||
|
|
|
@ -28,5 +28,6 @@ s/JS_PUBLIC_API(\([^()]*\))/\1/
|
|||
s/JS_DLL_CALLBACK/PR_CALLBACK/
|
||||
s/JS_STATIC_DLL_CALLBACK/PR_STATIC_CALLBACK/
|
||||
s/JS_NewDHashTable/PL_NewDHashTable/
|
||||
s/JS_ASSERT(0)/NS_NOTREACHED("0")/
|
||||
s/\( *\)JS_ASSERT(\(.*\));/\1NS_ASSERTION(\2,\n\1 "\2");/
|
||||
s/JS_/PR_/g
|
||||
|
|
|
@ -78,8 +78,8 @@
|
|||
#else
|
||||
|
||||
#define ENTRY_STORE_EXTRA 0
|
||||
#define INCREMENT_RECURSION_LEVEL(table_) 1
|
||||
#define DECREMENT_RECURSION_LEVEL(table_) 0
|
||||
#define INCREMENT_RECURSION_LEVEL(table_) ((void)1)
|
||||
#define DECREMENT_RECURSION_LEVEL(table_) ((void)0)
|
||||
|
||||
#endif /* defined(DEBUG) */
|
||||
|
||||
|
@ -632,8 +632,7 @@ PL_DHashTableOperate(PLDHashTable *table, const void *key, PLDHashOperator op)
|
|||
break;
|
||||
|
||||
default:
|
||||
NS_ASSERTION(0,
|
||||
"0");
|
||||
NS_NOTREACHED("0");
|
||||
entry = NULL;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче