Freigeben über


Compilerwarnung (Ebene 1) C4180

Auf Funktionstyp angewendeter Qualifizierer ist ohne Bedeutung; wird ignoriert

Bemerkungen

Ein Qualifizierer, z const. B. , wird auf einen funktionstyp angewendet, der durch typedef.

Beispiel

Im folgenden Beispiel wird C4180 generiert:

// C4180.cpp
// compile with: /W1 /c
typedef int FuncType(void);

// the const qualifier cannot be applied to the
// function type FuncType
const FuncType f;   // C4180