This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Shut up false positive warning in libgomp/env.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]