Skip to content
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

Merged
merged 23 commits into from
Nov 13, 2016
Merged

Windows 2015 warnings rollup #1383

merged 23 commits into from
Nov 13, 2016

Conversation

hobu
Copy link
Member

@hobu hobu commented Nov 11, 2016

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.

@hobu hobu added this to the 1.4 milestone Nov 11, 2016
Copy link
Contributor

@abellgithub abellgithub left a 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;
Copy link
Contributor

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 };
Copy link
Contributor

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 :)

Copy link
Member Author

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 };
Copy link
Contributor

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.

Copy link
Contributor

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?

@hobu hobu merged commit 4d43c65 into master Nov 13, 2016
@hobu hobu deleted the hobu-windows-updates branch November 13, 2016 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants