Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 891 Bytes

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

File metadata and controls

19 lines (14 loc) · 891 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (levels 1 and 4) C4115
Compiler Warning (levels 1 and 4) C4115
11/04/2016
C4115
C4115
f3f94e72-fc49-4d09-b3e7-23d68e61152f

Compiler Warning (levels 1 and 4) C4115

'type' : named type definition in parentheses

The given symbol is used to define a structure, union, or enumerated type inside a parenthetical expression. The scope of the definition may be unexpected.

In a C function call, the definition has global scope. In a C++ call, the definition has the same scope as the function being called.

This warning can also be caused by declarators within parentheses (such as prototypes) that are not parenthetical expressions.

This is a level-1 warning with C++ programs and C programs compiled under ANSI compatibility (/Za). Otherwise, it is level 3.