Ticket #11989: 0002-Fix-GCC-4.9-maybe-uninitialized-warning.patch

File 0002-Fix-GCC-4.9-maybe-uninitialized-warning.patch, 1.0 KB (added by mt, 4 years ago)
  • src/add-ons/kernel/file_systems/netfs/server/ClientConnection.cpp

    From e8f22e36b0415e01b4679f1f5a327195da4cc6c9 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Sun, 19 Apr 2015 17:58:13 +0900
    Subject: [PATCH 2/6] Fix GCC 4.9 maybe-uninitialized warning.
    
    ---
     src/add-ons/kernel/file_systems/netfs/server/ClientConnection.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/add-ons/kernel/file_systems/netfs/server/ClientConnection.cpp b/src/add-ons/kernel/file_systems/netfs/server/ClientConnection.cpp
    index 456d722..a224f73 100644
    a b void 
    25062506ClientConnection::CloseNodeMonitoringEventQueue()
    25072507{
    25082508    typedef Vector<NodeMonitoringRequest*> RequestVector;
    2509     const RequestVector* requests;
     2509    const RequestVector* requests = NULL;
    25102510    if (fNodeMonitoringEvents->Close(false, &requests) == B_OK) {
    25112511        for (RequestVector::ConstIterator it = requests->Begin();
    25122512             it != requests->End();