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
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for