Look carefully at the warning messages you're actually getting:
1> warning C4514: 'hypot' : unreferenced inline function has been removed
If you are saying to yourself "so?!", then that's exactly my point.
Warning C4514 is a notoriously useless one and is literally just crying out to be suppressed globally. It is a completely non-actionable item and describes an expected case when you're working with a library.
Warning C4711—a function has been selected for inline expansion—is another noisy warning you'll see. Of course, you'll only get this one when compiling with optimizations enabled, which is probably why you haven't seen it yet.
Like the linked documentation says, these are "informational warnings" and they're disabled by default. Which is great, except that I, like you, prefer to compile my code with "All Warnings" (/Wall
) enabled, and these just add noise. So I turn them back off individually.
You can disable these warnings either by adding the suppressions to your project's properties in the VS IDE, or you can use pragma directives at the top of your code file (e.g., in your precompiled header):
#pragma warning(disable: 4514 4711)