mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1005309, Part 2: Enable extended compiler warnings (-W4 -Wall) in mozilla::pkix, r=mmc
--HG-- extra : rebase_source : 033574a0b26582753baec003becfaf15bbd85003 extra : histedit_source : 2d52c47f92b8f694203c2eb580b37be78ccf2f9c
This commit is contained in:
parent
8da948d67f
commit
163631e898
@ -965,11 +965,11 @@ CreateEncodedOCSPRequest(PLArenaPool* arena,
|
||||
}
|
||||
|
||||
uint8_t* d = encodedRequest->data;
|
||||
*d++ = 0x30; *d++ = totalLen - 2; // OCSPRequest (SEQUENCE)
|
||||
*d++ = 0x30; *d++ = totalLen - 4; // tbsRequest (SEQUENCE)
|
||||
*d++ = 0x30; *d++ = totalLen - 6; // requestList (SEQUENCE OF)
|
||||
*d++ = 0x30; *d++ = totalLen - 8; // Request (SEQUENCE)
|
||||
*d++ = 0x30; *d++ = totalLen - 10; // reqCert (CertID SEQUENCE)
|
||||
*d++ = 0x30; *d++ = totalLen - 2u; // OCSPRequest (SEQUENCE)
|
||||
*d++ = 0x30; *d++ = totalLen - 4u; // tbsRequest (SEQUENCE)
|
||||
*d++ = 0x30; *d++ = totalLen - 6u; // requestList (SEQUENCE OF)
|
||||
*d++ = 0x30; *d++ = totalLen - 8u; // Request (SEQUENCE)
|
||||
*d++ = 0x30; *d++ = totalLen - 10u; // reqCert (CertID SEQUENCE)
|
||||
|
||||
// reqCert.hashAlgorithm
|
||||
for (size_t i = 0; i < PR_ARRAY_SIZE(hashAlgorithm); ++i) {
|
||||
|
@ -22,6 +22,17 @@ TEST_DIRS += [
|
||||
'test/lib',
|
||||
]
|
||||
|
||||
CXXFLAGS += ['-Wall']
|
||||
# -Wall with Visual C++ enables too many problematic warnings
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
||||
CXXFLAGS += [
|
||||
'-wd4514', # 'function': unreferenced inline function has been removed
|
||||
'-wd4668', # 'symbol' is not defined as a preprocessor macro...
|
||||
'-wd4710', # 'function': function not inlined
|
||||
'-wd4711', # function 'function' selected for inline expansion
|
||||
'-wd4820', # 'bytes' bytes padding added after construct 'member_name'
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
LIBRARY_NAME = 'mozillapkix'
|
||||
|
Loading…
Reference in New Issue
Block a user