зеркало из https://github.com/mozilla/gecko-dev.git
Bug 402395 - Dangling semi-colon caused when "ac_add_options --disable-logging" throws warning in VS2005. patch by Masayuki Nakano (masayuki@d-toybox.com), r=dwitte, sr=bsmedberg, a=beltzner for M9.
This commit is contained in:
Родитель
a6d4ff4ae1
Коммит
242cc017f4
|
@ -206,9 +206,11 @@ static PRLogModuleInfo *sCookieLog = PR_NewLogModule("cookie");
|
||||||
#define COOKIE_LOGFAILURE(a, b, c, d) LogFailure(a, b, c, d)
|
#define COOKIE_LOGFAILURE(a, b, c, d) LogFailure(a, b, c, d)
|
||||||
#define COOKIE_LOGSUCCESS(a, b, c, d, e) LogSuccess(a, b, c, d, e)
|
#define COOKIE_LOGSUCCESS(a, b, c, d, e) LogSuccess(a, b, c, d, e)
|
||||||
#define COOKIE_LOGEVICTED(a) LogEvicted(a)
|
#define COOKIE_LOGEVICTED(a) LogEvicted(a)
|
||||||
#define COOKIE_LOGSTRING(lvl, fmt) \
|
#define COOKIE_LOGSTRING(lvl, fmt) \
|
||||||
PR_LOG(sCookieLog, lvl, fmt); \
|
PR_BEGIN_MACRO \
|
||||||
PR_LOG(sCookieLog, lvl, ("\n"))
|
PR_LOG(sCookieLog, lvl, fmt); \
|
||||||
|
PR_LOG(sCookieLog, lvl, ("\n")); \
|
||||||
|
PR_END_MACRO
|
||||||
|
|
||||||
static void
|
static void
|
||||||
LogFailure(PRBool aSetCookie, nsIURI *aHostURI, const char *aCookieString, const char *aReason)
|
LogFailure(PRBool aSetCookie, nsIURI *aHostURI, const char *aCookieString, const char *aReason)
|
||||||
|
@ -322,10 +324,10 @@ LogSuccess(PRBool aSetCookie, nsIURI *aHostURI, const nsAFlatCString &aCookieStr
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define COOKIE_LOGFAILURE(a, b, c, d) /* nothing */
|
#define COOKIE_LOGFAILURE(a, b, c, d) PR_BEGIN_MACRO /* nothing */ PR_END_MACRO
|
||||||
#define COOKIE_LOGSUCCESS(a, b, c, d, e) /* nothing */
|
#define COOKIE_LOGSUCCESS(a, b, c, d, e) PR_BEGIN_MACRO /* nothing */ PR_END_MACRO
|
||||||
#define COOKIE_LOGEVICTED(a) /* nothing */
|
#define COOKIE_LOGEVICTED(a) PR_BEGIN_MACRO /* nothing */ PR_END_MACRO
|
||||||
#define COOKIE_LOGSTRING(a, b) /* nothing */
|
#define COOKIE_LOGSTRING(a, b) PR_BEGIN_MACRO /* nothing */ PR_END_MACRO
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
|
Загрузка…
Ссылка в новой задаче