From 5fba2f4f18c597b51d2d0a68636aba1e9cd59595 Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Sun, 27 Jul 2025 18:31:20 +0800 Subject: [PATCH 1/4] Add "Remarks" heading in C4235 warning reference --- .../compiler-warnings/compiler-warning-level-4-c4235.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md b/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md index b555d0df57..736ff9fbd1 100644 --- a/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md +++ b/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md @@ -9,6 +9,8 @@ helpviewer_keywords: ["C4235"] > nonstandard extension used: '*keyword*' keyword not supported on this architecture +## Remarks + The compiler doesn't support the keyword you used on the architecture your build is targeting. This warning is always issued as an error. Use the [warning](../../preprocessor/warning.md) pragma to disable. From a4b8091208f9f0394c882bef871d888a0a8cea25 Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Sun, 27 Jul 2025 18:40:50 +0800 Subject: [PATCH 2/4] Extend remarks in C4235 warning reference --- .../compiler-warnings/compiler-warning-level-4-c4235.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md b/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md index 736ff9fbd1..3a58dd4bec 100644 --- a/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md +++ b/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md @@ -11,6 +11,6 @@ helpviewer_keywords: ["C4235"] ## Remarks -The compiler doesn't support the keyword you used on the architecture your build is targeting. +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. From a0da34ab27f4f83b428f26c702612f80fe152bbd Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Sun, 27 Jul 2025 18:52:32 +0800 Subject: [PATCH 3/4] Add example in C4235 warning reference --- .../compiler-warning-level-4-c4235.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md b/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md index 3a58dd4bec..1af307e236 100644 --- a/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md +++ b/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md @@ -14,3 +14,17 @@ helpviewer_keywords: ["C4235"] 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 +} +``` From 3c6dea46c66a52392701c110d12d4bd720770582 Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Sun, 27 Jul 2025 18:54:11 +0800 Subject: [PATCH 4/4] Update metadata in C4235 warning reference --- .../compiler-warnings/compiler-warning-level-4-c4235.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md b/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md index 1af307e236..5cb82b3437 100644 --- a/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md +++ b/docs/error-messages/compiler-warnings/compiler-warning-level-4-c4235.md @@ -1,7 +1,7 @@ --- -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"] ---