summaryrefslogtreecommitdiffhomepage
path: root/cparser.1
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-01-31 07:21:58 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-01-31 19:20:26 +0100
commit9c83b97948cc89fa8bfac07d0f478809f39da4a7 (patch)
treeafc335da7d5184b4444314c240063746a7a54915 /cparser.1
parent1f646e023fb6253735872583088d5e8ab9b73130 (diff)
Add switch '-Wreturn-local-addr'.
Diffstat (limited to 'cparser.1')
-rw-r--r--cparser.12
1 files changed, 2 insertions, 0 deletions
diff --git a/cparser.1 b/cparser.1
index d1eb3fc..8e3d1d2 100644
--- a/cparser.1
+++ b/cparser.1
@@ -215,6 +215,8 @@ Warn if parentheses are omitted in certain contexts.
.No Warn if So + Sc or So - Sc is used as operand of So << Sc or So >> Sc , Sq e.g. x\ +\ y\ <<\ z .
.It Fl Wredundant-decls
Warn about redundant declarations, i.e. multiple declarations of the same object or static forward declarations which have no use before their definition.
+.It Fl Wreturn-local-addr
+Warn about returning a pointer (or in C++, a reference) to a variable that goes out of scope after the function returns.
.It Fl Wshadow
Warn when a new declaration shadows another declaration with the same name in an outer scope.
.It Fl Wshadow-local