aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2007-07-04 12:08:44 +0200
committerUros Bizjak <uros@gcc.gnu.org>2007-07-04 12:08:44 +0200
commita206413ab4f5daf2e9d34ded9ff67c6651a4ba74 (patch)
tree4818d166c16e086f1ef2bcbea440c8bdaba13d41 /libcpp
parentc447f77406d36aa217d52214c00e11437f3751b9 (diff)
downloadgcc-a206413ab4f5daf2e9d34ded9ff67c6651a4ba74.zip
gcc-a206413ab4f5daf2e9d34ded9ff67c6651a4ba74.tar.gz
gcc-a206413ab4f5daf2e9d34ded9ff67c6651a4ba74.tar.bz2
traditional.c (_cpp_scan_out_logical_line): Initialize fmacro.args...
* traditional.c (_cpp_scan_out_logical_line): Initialize fmacro.args, fmacro.node, fmacro.offset, fmacro.line and fmacro.args to prevent 'may be used uninitialized' warning. From-SVN: r126311
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog6
-rw-r--r--libcpp/traditional.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 0c11a0f..65b199d 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-04 Uros Bizjak <ubizjak@gmail.com>
+
+ * traditional.c (_cpp_scan_out_logical_line): Initialize
+ fmacro.args, fmacro.node, fmacro.offset, fmacro.line and
+ fmacro.args to prevent 'may be used uninitialized' warning.
+
2007-07-03 Uros Bizjak <ubizjak@gmail.com>
* include/cpplib.h (CPP_N_WIDTH_MD, CPP_N_MD_W, CPP_N_MD_Q):
diff --git a/libcpp/traditional.c b/libcpp/traditional.c
index a543348..7ca3cfd 100644
--- a/libcpp/traditional.c
+++ b/libcpp/traditional.c
@@ -1,5 +1,5 @@
/* CPP Library - traditional lexical analysis and macro expansion.
- Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2004, 2005, 2007 Free Software Foundation, Inc.
Contributed by Neil Booth, May 2002
This program is free software; you can redistribute it and/or modify it
@@ -353,6 +353,11 @@ _cpp_scan_out_logical_line (cpp_reader *pfile, cpp_macro *macro)
const uchar *start_of_input_line;
fmacro.buff = NULL;
+ fmacro.args = NULL;
+ fmacro.node = NULL;
+ fmacro.offset = 0;
+ fmacro.line = 0;
+ fmacro.argc = 0;
quote = 0;
header_ok = pfile->state.angled_headers;