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
ab7ab90a
Commit
ab7ab90a
authored
Oct 25, 2015
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(coverity scan): Работа над исправлением ошибок,
заодно исключил -Wctor-dtor-privacy
parent
41587a59
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
10 deletions
+21
-10
Makefile.am
Utilities/codegen/tests/Makefile.am
+2
-2
configure.ac
configure.ac
+2
-2
MTR.cc
extensions/lib/MTR.cc
+12
-3
UObject_SK.cc
extensions/lib/UObject_SK.cc
+5
-3
No files found.
Utilities/codegen/tests/Makefile.am
View file @
ab7ab90a
...
...
@@ -13,10 +13,10 @@ GENERATED=TestGen_SK.h TestGen_SK.cc TestGen-main.cc
GENERATED2
=
TestGenAlone_SK.h TestGenAlone_SK.cc TestGenAlone-main.cc
GENUOBJ
=
UObject_SK.cc UObject_SK.h
TestGen_SK.cc TestGen_SK.h
:
../@PACKAGE@-codegen testgen.src.xml ../*.xsl
TestGen
-main.cc TestGen
_SK.cc TestGen_SK.h
:
../@PACKAGE@-codegen testgen.src.xml ../*.xsl
../@PACKAGE@-codegen
-l
$(top_builddir)
/Utilities/codegen
--local-include
-n
TestGen testgen.src.xml
TestGenAlone_SK.cc TestGenAlone_SK.h
:
../@PACKAGE@-codegen testgen-alone.src.xml ../*.xsl
TestGenAlone
-main.cc TestGenAlone
_SK.cc TestGenAlone_SK.h
:
../@PACKAGE@-codegen testgen-alone.src.xml ../*.xsl
../@PACKAGE@-codegen
-l
$(top_builddir)
/Utilities/codegen
--local-include
--alone
-n
TestGenAlone testgen-alone.src.xml
$(GENUOBJ)
:
../@PACKAGE@-codegen uobject.src.xml ../*.xsl
...
...
configure.ac
View file @
ab7ab90a
...
...
@@ -277,8 +277,8 @@ AC_SUBST(COV_CFLAGS)
AM_CONDITIONAL(HAVE_COVERAGE, test ${buildgcov} = true)
AM_CONDITIONAL(HAVE_TESTS, test ${buildtests} = true)
# -Weffc++ -Wno-unused-variable -Werror
CXX_EXTRA_FLAGS="-Wnon-virtual-dtor -W
ctor-dtor-privacy -W
overloaded-virtual -Woverflow"
# -Weffc++ -Wno-unused-variable -Werror
-Wctor-dtor-privacy
CXX_EXTRA_FLAGS="-Wnon-virtual-dtor -Woverloaded-virtual -Woverflow"
# export
LDFLAGS="$LDFLAGS ${OMNI_LIBS} ${XML_LIBS} ${SIGC_LIBS} ${COV_LIBS} ${COMCPP_LIBS}"
...
...
extensions/lib/MTR.cc
View file @
ab7ab90a
...
...
@@ -612,21 +612,30 @@ namespace MTR
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
MTR
::
T8
&
t
)
{
return
os
<<
setfill
(
'0'
)
<<
hex
std
::
ios_base
::
fmtflags
old_flags
=
os
.
flags
();
os
<<
setfill
(
'0'
)
<<
hex
<<
setw
(
2
)
<<
t
.
hour
()
<<
":"
<<
setw
(
2
)
<<
t
.
min
()
<<
" "
<<
setw
(
2
)
<<
t
.
day
()
<<
"/"
<<
setw
(
2
)
<<
t
.
mon
();
os
.
setf
(
old_flags
);
return
os
;
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
MTR
::
T9
&
t
)
{
return
os
<<
setfill
(
'0'
)
<<
hex
std
::
ios_base
::
fmtflags
old_flags
=
os
.
flags
();
os
<<
setfill
(
'0'
)
<<
hex
<<
setw
(
2
)
<<
t
.
hour
()
<<
":"
<<
setw
(
2
)
<<
t
.
min
()
<<
":"
<<
setw
(
2
)
<<
t
.
sec
()
<<
"."
<<
setw
(
2
)
<<
t
.
ssec
();
os
.
setf
(
old_flags
);
return
os
;
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
MTR
::
T10
&
t
)
{
return
os
<<
setfill
(
'0'
)
<<
dec
std
::
ios_base
::
fmtflags
old_flags
=
os
.
flags
();
os
<<
setfill
(
'0'
)
<<
dec
<<
setw
(
4
)
<<
t
.
year
()
<<
"/"
<<
setw
(
2
)
<<
t
.
mon
()
<<
"/"
<<
setw
(
2
)
<<
t
.
day
();
os
.
setf
(
old_flags
);
return
os
;
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
MTR
::
T16
&
t
)
{
...
...
extensions/lib/UObject_SK.cc
View file @
ab7ab90a
...
...
@@ -167,11 +167,13 @@ end_private(false)
resetMsgTime
=
uni_atoi
(
init3_str
(
conf
->
getArgParam
(
"--"
+
argprefix
+
"resetMsgTime"
),
conf
->
getProp
(
cnode
,
"resetMsgTime"
),
s_resetTime
));
ptResetMsg
.
setTiming
(
resetMsgTime
);
smReadyTime
out
=
conf
->
getArgInt
(
"--"
+
argprefix
+
"sm-ready-timeout"
,
""
);
if
(
sm
ReadyTime
out
==
0
)
int
sm_t
out
=
conf
->
getArgInt
(
"--"
+
argprefix
+
"sm-ready-timeout"
,
""
);
if
(
sm
_t
out
==
0
)
smReadyTimeout
=
60000
;
else
if
(
sm
ReadyTime
out
<
0
)
else
if
(
sm
_t
out
<
0
)
smReadyTimeout
=
UniSetTimer
::
WaitUpTime
;
else
smReadyTimeout
=
sm_tout
;
smTestID
=
conf
->
getSensorID
(
init3_str
(
conf
->
getArgParam
(
"--"
+
argprefix
+
"sm-test-id"
),
conf
->
getProp
(
cnode
,
"smTestID"
),
""
));
...
...
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