Remove -Wmaybe-uninitialized warning in tstclnt.c
Categories
(NSS :: Build, defect, P2)
Tracking
(Not tracked)
People
(Reporter: giulio.benetti, Assigned: giulio.benetti)
Details
Attachments
(1 file)
828 bytes,
patch
|
kjacobs
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
Steps to reproduce:
make nss_build_all BUILD_OPT=1 ALLOW_OPT_CODE_SIZE=1 OPT_CODE_SIZE=1
but using -Og flag instead of -Os.
Actual results:
In file included from ../../../dist/public/nss/seccomon.h:16,
from ../../../dist/private/nss/secutil.h:7,
from tstclnt.c:11:
tstclnt.c: In function ‘restartHandshakeAfterServerCertIfNeeded’:
../../../dist/public/nss/utilrename.h:65:23: error: ‘error’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
#define PORT_SetError PORT_SetError_Util
^~~~~~~~~~~~~~~~~~
tstclnt.c:920:17: note: ‘error’ was declared here
PRErrorCode error;
^~~~~
Expected results:
No warning.
Assignee | ||
Comment 1•5 years ago
|
||
This patch fixes the warning.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Comment on attachment 9074167 [details] [diff] [review] 0008-Bug-1561591-Remove-Wmaybe-uninitialized-warning-in-t.patch Review of attachment 9074167 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Description
•