-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 2015 warnings rollup #1383
Conversation
Only export functions, not entire class to shut up MSVC about exporting STL containers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm heartened that it only found this. Pretty good.
@@ -362,7 +362,7 @@ int SpatialReference::calculateZone(double lon, double lat) | |||
// Everywhere else. | |||
else | |||
{ | |||
zone = floor((lon + 180.0) / 6) + 1; | |||
zone = (int) floor((lon + 180.0) / 6) + 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It complains about THIS? So silly. Makes me shudder for thoughts of lint.
@@ -54,7 +54,7 @@ std::string TransformationFilter::getName() const { return s_info.name; } | |||
TransformationMatrix transformationMatrixFromString(const std::string& s) | |||
{ | |||
std::istringstream iss(s); | |||
TransformationMatrix matrix; | |||
TransformationMatrix matrix{ 0 }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes the programmer does know better :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backed out in @ac3e4fb
@@ -106,7 +106,7 @@ inline Everything extractDim(Extractor& ext, Dimension::Type type) | |||
{ | |||
using Type = Dimension::Type; | |||
|
|||
Everything e; | |||
Everything e{ 0 }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit of performance sensitive code. The optimizer may eliminate the unnecessary initialization, but I'm not sure. Certainly this is an unnecessary initialization, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just suppress the warning?
Related to #1361, I got a MSVC 2015 build system going and attempted to clean up all of the warnings it was complaining about so we have a better chance of seeing changes in the output as development continues.