Commit 3e8ed111 authored by Pavel Vainerman's avatar Pavel Vainerman

Добавил ключей компилятору...исравил обнаруженную ошибку.

parent be27f950
......@@ -276,7 +276,7 @@ AM_CONDITIONAL(HAVE_TESTS, test ${buildtests} = true)
# export
LDFLAGS="${OMNI_LIBS} ${XML_LIBS} ${SIGC_LIBS} ${COV_LIBS}"
CXXFLAGS="-pedantic -Wall -funsigned-char -std=c++11 -g -D_GNU_SOURCE ${OMNI_CFLAGS} ${XML_CFLAGS} ${SIGC_CFLAGS} ${COV_CFLAGS} -I\$(top_builddir)/include"
CXXFLAGS="-pedantic -Wall -funsigned-char -std=c++11 -g -D_GNU_SOURCE ${OMNI_CFLAGS} ${XML_CFLAGS} ${SIGC_CFLAGS} ${COV_CFLAGS} -I\$(top_builddir)/include -Wnon-virtual-dtor -Wctor-dtor-privacy -Woverloaded-virtual "
AC_SUBST(LDFLAGS)
AC_SUBST(CXXFLAGS)
......
......@@ -17,7 +17,7 @@ class LogAgregator:
virtual ~LogAgregator();
virtual void logFile( const std::string& f );
virtual void logFile( const std::string& f, bool truncate = false ) override;
void add( std::shared_ptr<DebugStream> log );
std::shared_ptr<DebugStream> create( const std::string& logname );
......
......@@ -14,9 +14,9 @@ LogAgregator::LogAgregator( Debug::type t ):
delete rdbuf(new teebuf(&internal->nbuf, &internal->sbuf));
}
// -------------------------------------------------------------------------
void LogAgregator::logFile( const std::string& f )
void LogAgregator::logFile( const std::string& f, bool truncate )
{
DebugStream::logFile(f);
DebugStream::logFile(f,truncate);
if( !f.empty() )
delete rdbuf(new teebuf(&internal->fbuf, &internal->sbuf));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment