Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
3a80b0f1
Commit
3a80b0f1
authored
Feb 06, 2015
by
peastman
Browse files
Merge pull request #799 from chrisdembia/vs2013-lepton-warnings
Fixes vs2013 warnings 4251, 4267 in lepton.
parents
83ed602e
de927414
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
libraries/lepton/include/lepton/windowsIncludes.h
libraries/lepton/include/lepton/windowsIncludes.h
+4
-4
libraries/lepton/src/CompiledExpression.cpp
libraries/lepton/src/CompiledExpression.cpp
+2
-2
No files found.
libraries/lepton/include/lepton/windowsIncludes.h
View file @
3a80b0f1
...
...
@@ -25,14 +25,14 @@
#ifdef _MSC_VER
// We don't want to hear about how sprintf is "unsafe".
#pragma warning(disable:4996)
// Keep MS VC++ quiet about lack of dll export of private members.
#pragma warning(disable:4251)
#if defined(LEPTON_BUILDING_SHARED_LIBRARY)
#define LEPTON_EXPORT __declspec(dllexport)
// Keep MS VC++ quiet about lack of dll export of private members.
#pragma warning(disable:4251)
#elif defined(LEPTON_BUILDING_STATIC_LIBRARY) || defined(LEPTON_USE_STATIC_LIBRARIES)
#define LEPTON_EXPORT
#define LEPTON_EXPORT
#else
#define LEPTON_EXPORT __declspec(dllimport) // i.e., a client of a shared library
#define LEPTON_EXPORT __declspec(dllimport) // i.e., a client of a shared library
#endif
#else
#define LEPTON_EXPORT // Linux, Mac
...
...
libraries/lepton/src/CompiledExpression.cpp
View file @
3a80b0f1
...
...
@@ -121,7 +121,7 @@ void CompiledExpression::compileExpression(const ExpressionTreeNode& node, vecto
arguments
[
stepIndex
]
=
args
;
}
}
temps
.
push_back
(
make_pair
(
node
,
workspace
.
size
()));
temps
.
push_back
(
make_pair
(
node
,
(
int
)
workspace
.
size
()));
workspace
.
push_back
(
0.0
);
}
...
...
@@ -368,4 +368,4 @@ void CompiledExpression::generateSingleArgCall(X86Compiler& c, X86XmmVar& dest,
call
->
setArg
(
0
,
arg
);
call
->
setRet
(
0
,
dest
);
}
#endif
\ No newline at end of file
#endif
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