We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3967 - warnings with updated libm sources
Summary: warnings with updated libm sources
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-17 19:37 UTC by Ozkan Sezer
Modified: 2017-11-22 05:51 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ozkan Sezer 2017-11-17 19:37:33 UTC
After changeset 11683: 48bcba563d9c, my VS2005 emits the following warnings
with the updated libm sources:

1>c:\sdl2\src\libm\e_log.c(91) : warning C4723: potential divide by 0
1>c:\sdl2\src\libm\e_log.c(92) : warning C4723: potential divide by 0
1>c:\sdl2\src\libm\e_pow.c(182) : warning C4756: overflow in constant arithmetic
1>c:\sdl2\src\libm\e_pow.c(183) : warning C4756: overflow in constant arithmetic
1>c:\sdl2\src\libm\e_pow.c(186) : warning C4756: overflow in constant arithmetic
1>c:\sdl2\src\libm\e_pow.c(187) : warning C4756: overflow in constant arithmetic

I have not dug to see whether the warnings are bogus, neither have I
any patches for them.
Comment 1 Sam Lantinga 2017-11-22 05:51:58 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/8a982ed61896