Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
945c4a8b
Commit
945c4a8b
authored
Apr 25, 2002
by
Bill Hoffman
Browse files
WAR: remove warnings for .NET compiler
parent
0c948312
Changes
3
Hide whitespace changes
Inline
Side-by-side
Source/ccommand.cxx
View file @
945c4a8b
...
...
@@ -102,7 +102,7 @@ int main(int ac, char** av)
double
clocks_per_sec
=
(
double
)
CLOCKS_PER_SEC
;
std
::
cout
<<
"Elapsed time: "
<<
(
time_t
)(
time_finish
-
time_start
)
<<
" s. (time)"
<<
(
long
)(
time_finish
-
time_start
)
<<
" s. (time)"
<<
", "
<<
(
double
)(
clock_finish
-
clock_start
)
/
clocks_per_sec
<<
" s. (clock)"
...
...
Source/cmCMakeMinimumRequired.cxx
View file @
945c4a8b
...
...
@@ -30,7 +30,7 @@ bool cmCMakeMinimumRequired::InitialPass(std::vector<std::string> const& args)
m_Makefile
->
AddDefinition
(
"CMAKE_MINIMUM_REQUIRED_VERSION"
,
args
[
1
].
c_str
());
}
float
version
=
float
(
m_Makefile
->
GetMajorVersion
());
version
+=
(
float
(
m_Makefile
->
GetMinorVersion
())
*
.1
);
version
+=
(
float
(
m_Makefile
->
GetMinorVersion
())
*
(
float
)
.1
);
float
reqVersion
=
0
;
sscanf
(
args
[
1
].
c_str
(),
"%f"
,
&
reqVersion
);
if
(
reqVersion
>
version
)
...
...
Source/cmOptionCommand.cxx
View file @
945c4a8b
...
...
@@ -37,7 +37,7 @@ bool cmOptionCommand::InitialPass(std::vector<std::string> const& args)
if
(
argError
)
{
std
::
string
m
=
"called with incorrect number of arguments: "
;
for
(
in
t
i
=
0
;
i
<
args
.
size
();
++
i
)
for
(
size_
t
i
=
0
;
i
<
args
.
size
();
++
i
)
{
m
+=
args
[
i
];
m
+=
" "
;
...
...
Write
Preview
Supports
Markdown
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