Closed Bug 1389263 Opened 8 years ago Closed 8 years ago

cpputil/databuffer.h:96:14: error: 'curve' may be used uninitialized in this function

Categories

(NSS :: Libraries, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: glandium, Assigned: ttaubert)

Details

On big endian architectures: In file included from test_io.h:17:0, from gtest_utils.h:12, from ssl_ecdh_unittest.cc:19: ../../cpputil/databuffer.h: In member function 'virtual nss_test::PacketFilter::Action +nss_test::ECCServerKEXFilter::FilterHandshake(const nss_test::TlsHandshakeFilter::HandshakeHeader&, const nss_test::DataBuffer&, +nss_test::DataBuffer*)': ../../cpputil/databuffer.h:96:14: error: 'curve' may be used uninitialized in this function [-Werror=maybe-uninitialized] uint32_t nvalue = htonl(val); ^~~~~~ ssl_ecdh_unittest.cc:554:14: note: 'curve' was declared here uint32_t curve; ^~~~~ cc1plus: all warnings being treated as errors ../../coreconf/rules.mk:444: recipe for target 'OBJS/ssl_ecdh_unittest.o' failed
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.33
You need to log in before you can comment on or make changes to this bug.