This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zach.ware
Recipients Brecht.Van.Lommel, mark.dickinson, tabrezm, zach.ware
Date 2014-01-28.20:17:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390940227.04.0.203812486611.issue20221@psf.upfronthosting.co.za>
In-reply-to
Content
Your test program works for VS2010 as well (/W4 is unnecessary, the default warning level gives the warning), but still doesn't answer the question of why the math module (specifically math.hypot) doesn't show the problem.

I understand why both of your cases *don't* work, I want to understand why mathmodule.c and cmathmodule.c (and complexobject.c, for that matter) *do* work.  Attempting to compile mathmodule.c alone results in the warning, and even picking through mathmodule.i as produced by preprocessing to file, it looks like math_hypot should always have the problem.

The fact that math_hypot works when compiled with the rest of Python frankly frustrates me quite a lot, because I can see no reason why it should.
History
Date User Action Args
2014-01-28 20:17:07zach.waresetrecipients: + zach.ware, mark.dickinson, Brecht.Van.Lommel, tabrezm
2014-01-28 20:17:07zach.waresetmessageid: <1390940227.04.0.203812486611.issue20221@psf.upfronthosting.co.za>
2014-01-28 20:17:07zach.warelinkissue20221 messages
2014-01-28 20:17:06zach.warecreate