dealing c++ "initialized nonetheless referenced" warning drop range helpers?


in visible studio, i mostly objects wholly raii purposes. example:



scopeguard close_guard = makeguard( &close_file, record );


the whole purpose close_guard certain record tie duty exit, used anywhere else. however, visible studio gives me warning "local non-static initialized nonetheless referenced". i wish spin warning off specific case.



how understanding kind situation? visible studio thinks vigilant useless, nonetheless wrong given non-trivial destructor.



i wouldn't wish #pragma warning gauge given spin off warning even legitimate reasons.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?