From ea51ca8d25fbd716a635887d03789da8cafe4cb1 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Tue, 6 May 2025 15:46:18 +0800 Subject: [PATCH] fixes #21975; Pragma block disabling warning has effect beyond block (#24934) fixes #21975 (cherry picked from commit 433b725cbb65eb1b66801a251b75b39011c22984) --- compiler/semstmts.nim | 17 +++++++++++++++++ tests/pragmas/tpragmablock.nim | 11 +++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tests/pragmas/tpragmablock.nim diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index b5758f7309..8e32589ea3 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -2805,9 +2805,24 @@ proc recursiveSetFlag(n: PNode, flag: TNodeFlag) = for i in 0..