From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/gcc~13/warnings-and-errors.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 devdocs/gcc~13/warnings-and-errors.html (limited to 'devdocs/gcc~13/warnings-and-errors.html') diff --git a/devdocs/gcc~13/warnings-and-errors.html b/devdocs/gcc~13/warnings-and-errors.html new file mode 100644 index 00000000..84b1c292 --- /dev/null +++ b/devdocs/gcc~13/warnings-and-errors.html @@ -0,0 +1,10 @@ +

14.9 Warning Messages and Error Messages

The GNU compiler can produce two kinds of diagnostics: errors and warnings. Each kind has a different purpose:

Warnings may indicate danger points where you should check to make sure that your program really does what you intend; or the use of obsolete features; or the use of nonstandard features of GNU C or C++. Many warnings are issued only if you ask for them, with one of the -W options (for instance, -Wall requests a variety of useful warnings).

GCC always tries to compile your program if possible; it never gratuitously rejects a program whose meaning is clear merely because (for instance) it fails to conform to a standard. In some cases, however, the C and C++ standards specify that certain extensions are forbidden, and a diagnostic must be issued by a conforming compiler. The -pedantic option tells GCC to issue warnings in such cases; -pedantic-errors says to make them errors instead. This does not mean that all non-ISO constructs get warnings or errors.

See Options to Request or Suppress Warnings, for more detail on these and related command-line options.

+

+ © Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
+ https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Warnings-and-Errors.html +

+
-- cgit v1.2.3