summaryrefslogtreecommitdiff
path: root/lang/cparser/patches/patch-ab
diff options
context:
space:
mode:
authorbjs <bjs>2008-11-28 01:17:47 +0000
committerbjs <bjs>2008-11-28 01:17:47 +0000
commit60bc333366b1783a0ed5c8cf002eaa5243094152 (patch)
tree12f84988a4af26b831c6019809dce63332c1b664 /lang/cparser/patches/patch-ab
parentc17ef3b6525d4ecdf641cf4e8a8e7eb0efe74106 (diff)
downloadpkgsrc-60bc333366b1783a0ed5c8cf002eaa5243094152.tar.gz
Import cparser-0.9.5.
Cparser is a recursive descent C99 parser written in C99. It contains a lexer, a parser, and the appropriate constructs; it does AST and semantic analysis. It is currently used as a frontend to the libFirm intermediate representation. However, it can be used independently, and also is able to bootstrap itself. Currently, cparser uses an external preprocessor.
Diffstat (limited to 'lang/cparser/patches/patch-ab')
-rw-r--r--lang/cparser/patches/patch-ab16
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/cparser/patches/patch-ab b/lang/cparser/patches/patch-ab
new file mode 100644
index 00000000000..d726c7d12f5
--- /dev/null
+++ b/lang/cparser/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/11/28 01:17:47 bjs Exp $
+
+Quell warning about possible uninitialized use;
+someone may wish to look into this further.
+
+--- parser.c.orig 2008-08-01 05:01:24.000000000 -0400
++++ parser.c
+@@ -2402,7 +2402,7 @@ static initializer_t *parse_initializer(
+ {
+ type_t *type = skip_typeref(env->type);
+ initializer_t *result = NULL;
+- size_t max_index;
++ size_t max_index = 0;
+
+ if(is_type_scalar(type)) {
+ result = parse_scalar_initializer(type, env->must_be_constant);