aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-02-15 21:24:51 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-02-15 21:24:51 +0200
commit7ec7b66a3c3a4d3596537a119d0f97135ab16ea4 (patch)
tree3fc2175c3933b4e522d01c64a20738c8f91c9ec3 /dfa.c
parent8a2eed59fd54d901721376426b34c0c128bf0cfb (diff)
downloadegawk-7ec7b66a3c3a4d3596537a119d0f97135ab16ea4.tar.gz
egawk-7ec7b66a3c3a4d3596537a119d0f97135ab16ea4.tar.bz2
egawk-7ec7b66a3c3a4d3596537a119d0f97135ab16ea4.zip
Fix warnings from gcc -Wall, GCC 4.6.2.
Diffstat (limited to 'dfa.c')
-rw-r--r--dfa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dfa.c b/dfa.c
index 64ce8f7c..2bce294e 100644
--- a/dfa.c
+++ b/dfa.c
@@ -876,7 +876,7 @@ static token
parse_bracket_exp (void)
{
int invert;
- int c, c1, c2;
+ int c = 0, c1 = 0, c2 = 0;
charclass ccl;
/* Used to warn about [:space:].
@@ -886,8 +886,8 @@ parse_bracket_exp (void)
Bit 3 = includes ranges, char/equiv classes or collation elements. */
int colon_warning_state;
- wint_t wc;
- wint_t wc2;
+ wint_t wc = 0;
+ wint_t wc2 = 0;
wint_t wc1 = 0;
/* Work area to build a mb_char_classes. */