Closed Bug 1793424 Opened 3 years ago Closed 3 years ago

fails to build with clang 15 and opt build due to set but used only in an assert variable

Categories

(NSS :: Libraries, defect, P3)

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: iaroslav.gridin, Unassigned)

Details

+++ This bug was initially created as a clone of Bug #1788875 +++

Steps to reproduce:

% clang --version
Debian clang version 15.0.0-++20220625103012+3d37e785c77a-1~exp1
%./build.sh --clang -o

Actual results:

../../lib/ssl/ssl3con.c:938:18: error: variable 'numEnabled' set but not used [-Werror,-Wunused-but-set-variable]
    unsigned int numEnabled = 0;

Expected results:

successful build

Severity: -- → S4
Priority: -- → P3

Strange.

Works for me:

clang --version
Ubuntu clang version 15.0.4-++20221102053248+5c68a1cb1231-1~exp1~20221102053256.89
The build was successful.

Let's start with this: could you retry?

Flags: needinfo?(iaroslav.gridin)

Apparently it has been fixed since.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(iaroslav.gridin)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.