Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1019 Bytes

compiler-warning-level-1-c4964.md

File metadata and controls

27 lines (22 loc) · 1019 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4964
Compiler Warning (level 1) C4964
11/04/2016
C4964
C4964
b89c9274-8a92-4b7c-aa30-3fbb1b68ac73

Compiler Warning (level 1) C4964

No optimization options were specified; profile info will not be collected

/GL and /LTCG were specified, but no optimizations were requested, so no .pgc files will be generated and, therefore, no profile-guided optimizations will be possible.

If you want .pgc files to be generated when you run your application, specify one of the /O compiler options.

The following sample generates C4964:

// C4964.cpp
// compile with: /W1 /GL /link /ltcg:pgi
// C4964 expected
// Add /O2, for example, to the command line to resolve this warning.
int main() {
   int i;
}