Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
3e8ed111
Commit
3e8ed111
authored
May 22, 2015
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил ключей компилятору...исравил обнаруженную ошибку.
parent
be27f950
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
configure.ac
configure.ac
+1
-1
LogAgregator.h
include/LogAgregator.h
+1
-1
LogAgregator.cc
src/Log/LogAgregator.cc
+2
-2
No files found.
configure.ac
View file @
3e8ed111
...
...
@@ -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)
...
...
include/LogAgregator.h
View file @
3e8ed111
...
...
@@ -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
);
...
...
src/Log/LogAgregator.cc
View file @
3e8ed111
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment