[clang] [Docs] Clarify that -w suppresses warnings, not all diagnostics (PR #182670)

Swastik Saha via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 21 05:20:18 PST 2026


https://github.com/SwastikSaha updated https://github.com/llvm/llvm-project/pull/182670

>From d01cd54229813ebfdc241b00f8fb38fdc3b82ee6 Mon Sep 17 00:00:00 2001
From: SwastikSaha <swastiksaha6666 at gmail.com>
Date: Sat, 21 Feb 2026 15:57:57 +0530
Subject: [PATCH] [Docs] Clarify that -w suppresses warnings, not all
 diagnostics

The UsersManual previously stated that -w disables all diagnostics.
However, -w suppresses warning diagnostics only; errors are still emitted.
---
 clang/docs/UsersManual.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst
index cec1e2a6a4677..1d6a29ee478fa 100644
--- a/clang/docs/UsersManual.rst
+++ b/clang/docs/UsersManual.rst
@@ -149,7 +149,7 @@ Options to Control Error and Warning Messages
 
 .. option:: -w
 
-  Disable all diagnostics.
+  Disable all warning diagnostics. Errors are still emitted.
 
 .. option:: -Weverything
 



More information about the cfe-commits mailing list