Skip to content

Commit

Permalink
add comment to flag Tcl_Panic as no-return for Coverity Scan static a…
Browse files Browse the repository at this point in the history
…nalyzer
  • Loading branch information
msofer committed Jul 30, 2015
1 parent cc7fd96 commit 202ad21
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion generic/tclPanic.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,14 @@ Tcl_PanicVA(
*----------------------------------------------------------------------
*/

/* ARGSUSED */
/* ARGSUSED */

/*
* The following comment is here so that Coverity's static analizer knows that
* a Tcl_Panic() call can never return and avoids lots of false positives.
*/

/* coverity[+kill] */
void
Tcl_Panic(
const char *format,
Expand Down

0 comments on commit 202ad21

Please sign in to comment.