Skip to content

Improve C4235 warning reference #5586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
---
description: "Learn more about: Compiler Warning (level 1, Error) C4235"
title: "Compiler Warning (level 1, Error) C4235"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1, Error) C4235"
ms.date: 07/27/2025
f1_keywords: ["C4235"]
helpviewer_keywords: ["C4235"]
---
# Compiler Warning (level 1, Error) C4235

> nonstandard extension used: '*keyword*' keyword not supported on this architecture

The compiler doesn't support the keyword you used on the architecture your build is targeting.
## Remarks

The compiler doesn't support the keyword you used on the architecture your build is targeting. For example, the [`__asm`](../../assembler/inline/asm.md) keyword is not supported in x64 builds.

This warning is always issued as an error. Use the [warning](../../preprocessor/warning.md) pragma to disable.

## Example

The following example generates C4235 as the [Inline Assembler](../../assembler/inline/inline-assembler.md) is only supported on x86:

```cpp
// C4235.cpp
// processor: x64

int main()
{
__asm nop // C4235
}
```