Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 720 Bytes

compiler-warning-level-1-c4216.md

File metadata and controls

25 lines (20 loc) · 720 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4216
Compiler Warning (level 1) C4216
11/04/2016
C4216
C4216
211079dc-59d0-42a7-801c-2ddab21d7232

Compiler Warning (level 1) C4216

nonstandard extension used : float long

The default Microsoft extensions (/Ze) treat float long as double. ANSI compatibility (/Za) does not. Use double to maintain compatibility. The following sample generates C4216:

// C4216.cpp
// compile with: /W1
float long a;   // C4216

// use the line below to resolve the warning
// double a;

int main() {
}