From d46deb528b2e9e903a6621bc641703e56fc29aed Mon Sep 17 00:00:00 2001 From: Tim Gerundt Date: Fri, 1 Jul 2011 17:13:51 +0200 Subject: [PATCH] Manual: Don't wrap with --- man/cppcheck-design.docbook | 10 ++++++---- man/manual.docbook | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/man/cppcheck-design.docbook b/man/cppcheck-design.docbook index f34dc0e12..3435b6244 100644 --- a/man/cppcheck-design.docbook +++ b/man/cppcheck-design.docbook @@ -94,7 +94,7 @@ analysis can be needed to avoid false warnings. Here is an example that logically is the same as the previous example: - void f1(char *s) + void f1(char *s) { s[20] = 0; } @@ -105,7 +105,9 @@ void f2() if (x + y == 2) { f1(a); } -}Cppcheck will report this message: +} + + Cppcheck will report this message: Array 'a[10]' index 20 out of bounds @@ -116,7 +118,7 @@ void f2() prove that "x+y==2" can be true when the function is called from "f2". No error message is reported for this code: - void f1(char *s) + void f1(char *s) { if (x + y == 2) { s[20] = 0; @@ -127,7 +129,7 @@ void f2() { char a[10]; f1(a); -} +}
diff --git a/man/manual.docbook b/man/manual.docbook index ce9da73dd..4798edcdb 100644 --- a/man/manual.docbook +++ b/man/manual.docbook @@ -206,9 +206,9 @@ Checking path/file2.cpp... The output from Cppcheck is now: - Checking file3.c... + Checking file3.c... [file3.c:3]: (style) Variable 'i' is assigned a value that is never used -[file3.c:3]: (style) The scope of the variable i can be reduced +[file3.c:3]: (style) The scope of the variable i can be reduced