Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1 KB

compiler-warning-levels-1-and-4-c4112.md

File metadata and controls

25 lines (19 loc) · 1 KB
description title ms.date f1_keywords helpviewer_keywords
Learn more about: Compiler Warning (level 1 and level 4) C4112
Compiler Warning (level 1 and level 4) C4112
11/04/2016
C4112
C4112

Compiler Warning (level 1 and level 4) C4112

#line requires an integer between 1 and 'line_count'

The #line directive specifies an integer parameter that is outside the allowable range.

If the specified parameter is less than 1, the line counter is reset to 1. If the specified parameter is greater than number, which is the compiler-defined limit, the line counter is unchanged. This diagnostic is a level 1 warning under ANSI C compatibility (/Za) and a level 4 warning with Microsoft extensions (/Ze).

The following sample generates C4112:

// C4112.cpp
// compile with: /W4
#line 0   // C4112

int main() {
}