This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Shut up false positive warning in libgomp/env.c
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 14 Oct 2013 10:27:33 +0200
- Subject: [committed] Shut up false positive warning in libgomp/env.c
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
At -Og reportedly we get a false positive warning; this isn't performance
sensitive code, so initializing it doesn't hurt.
2013-10-14 Jakub Jelinek <jakub@redhat.com>
* env.c (parse_bind_var): Initialize value to avoid
(false positive) warning.
--- libgomp/env.c.jj 2013-10-12 00:10:02.000000000 +0200
+++ libgomp/env.c 2013-10-14 10:23:44.753793069 +0200
@@ -309,7 +309,7 @@ parse_bind_var (const char *name, char *
char **pvalues, unsigned long *pnvalues)
{
char *env;
- char value, *values = NULL;
+ char value = omp_proc_bind_false, *values = NULL;
int i;
static struct proc_bind_kinds
{
Jakub