summaryrefslogtreecommitdiff
path: root/gcc/input.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-10-06 09:33:49 +0200
committerMartin Liska <marxin@gcc.gnu.org>2016-10-06 07:33:49 +0000
commitac2a97db4b862579d6fea2e97000650bfe9b4659 (patch)
treebef19c5954ca2ecbf1d78780934c0e031fb1632f /gcc/input.c
parenta7773b4d0629c6ab0d8321c9b018f6a718bf232a (diff)
Fix warnings for make profiledbootstrap (PR bootstrap/77788)
PR bootstrap/77788 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert. * gimple-ssa-strength-reduction.c (slsr_process_cast): Initialize a pointer to NULL. (slsr_process_copy): Likewise. * input.c (location_get_source_line): Likewise. * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise. From-SVN: r240827
Diffstat (limited to 'gcc/input.c')
-rw-r--r--gcc/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/input.c b/gcc/input.c
index 67f727e5a2b..61316599cbd 100644
--- a/gcc/input.c
+++ b/gcc/input.c
@@ -713,7 +713,7 @@ const char *
location_get_source_line (const char *file_path, int line,
int *line_len)
{
- char *buffer;
+ char *buffer = NULL;
ssize_t len;
if (line == 0)