Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 715 Bytes

compiler-warning-level-1-c4177.md

File metadata and controls

25 lines (20 loc) · 715 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4177
Compiler Warning (level 1) C4177
11/04/2016
C4177
C4177
2b05a5b3-696e-4f21-818e-227b9335e748

Compiler Warning (level 1) C4177

#pragma pragma should be at global scope

The pragma pragma should not be used within a local scope. The pragma will not be valid until global scope is encountered after the current scope.

The following sample generates C4177:

// C4177.cpp
// compile with: /W1
// #pragma bss_seg("global")   // OK

int main() {
   #pragma bss_seg("local")    // C4177
}