Task #91646 - fixed.err

back to task #91646
download
Error: COMPILER_WARNING:
nss-3.115.1/nss/cmd/rsaperf/rsaperf.c: scope_hint: In function ‘main’
nss-3.115.1/nss/cmd/rsaperf/rsaperf.c:346:9: warning[-Wunused-but-set-variable=]: variable ‘calcThreads’ set but not used
#  346 |     int calcThreads = 0;
#      |         ^~~~~~~~~~~
#  344|       ThreadRunData **runDataArr = NULL;
#  345|       PRThread **threadsArr = NULL;
#  346|->     int calcThreads = 0;
#  347|   
#  348|       progName = strrchr(argv[0], '/');

Error: COMPILER_WARNING (CWE-704):
nss-3.115.1/nss/lib/freebl/lowhash_vector.c:65: included_from: Included from here.
nss-3.115.1/nss/lib/freebl/genload.c: scope_hint: In function ‘loader_LoadLibInReferenceDir’
nss-3.115.1/nss/lib/freebl/genload.c:92:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   92 |     c = strrchr(referencePath, PR_GetDirectorySeparator());
#      |       ^
#   90|   
#   91|       /* Remove the trailing filename from referencePath and add the new one */
#   92|->     c = strrchr(referencePath, PR_GetDirectorySeparator());
#   93|       if (c) {
#   94|           size_t referencePathSize = 1 + c - referencePath;

Error: COMPILER_WARNING (CWE-704):
nss-3.115.1/nss/lib/freebl/genload.c:92:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#   90|   
#   91|       /* Remove the trailing filename from referencePath and add the new one */
#   92|->     c = strrchr(referencePath, PR_GetDirectorySeparator());
#   93|       if (c) {
#   94|           size_t referencePathSize = 1 + c - referencePath;