File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -205,6 +205,10 @@ namespace plog
205205 return m_file;
206206 }
207207
208+ virtual ~Record () // virtual destructor to satisfy -Wnon-virtual-dtor warning
209+ {
210+ }
211+
208212 private:
209213 util::Time m_time;
210214 const Severity m_severity;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ if(MSVC)
3333 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX" )
3434 string (REPLACE "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} " )
3535elseif (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
36- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wconversion -pedantic -Werror" )
36+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wconversion -Wnon-virtual-dtor - pedantic -Werror" )
3737 set (CMAKE_CXX_VISIBILITY_PRESET hidden)
3838 set (CMAKE_VISIBILITY_INLINES_HIDDEN 1)
3939 checkObjCXX ()
You can’t perform that action at this time.
0 commit comments