summaryrefslogtreecommitdiff
path: root/test1.c
diff options
context:
space:
mode:
authorjbj <jbj>2002-07-02 23:54:38 +0000
committerjbj <jbj>2002-07-02 23:54:38 +0000
commit60d1a9abc0d3cdd45d3bd98f11db7ec5f1aa211a (patch)
tree8ad45d01da7d9a49bc97e3409af59cb518b07334 /test1.c
parent67b64b7205108ee9b1ea84f337b6cbd820eb19f8 (diff)
downloadlibpopt-60d1a9abc0d3cdd45d3bd98f11db7ec5f1aa211a.tar.gz
Add boundsread annotations throughout, enable +bounds checking.
Start narrowing the scope of bounds annotations by adding more annotations.
Diffstat (limited to 'test1.c')
-rw-r--r--test1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test1.c b/test1.c
index d1bbc47..8d84144 100644
--- a/test1.c
+++ b/test1.c
@@ -254,6 +254,7 @@ int main(int argc, const char ** argv)
if (singleDash)
fprintf(stdout, " -");
+/*@-boundsread@*/
rest = poptGetArgs(optCon);
if (rest) {
fprintf(stdout, " rest:");
@@ -262,6 +263,7 @@ int main(int argc, const char ** argv)
rest++;
}
}
+/*@=boundsread@*/
fprintf(stdout, "\n");