I've just committed this patch to fix PR50809, in which driver-arm.c failed to build with a C++ compiler and -Werror.

The patch is pre-approved by Ramana, and anyway probably qualifies as obvious.

Andrew
2011-10-21  Andrew Stubbs  <a...@codesourcery.com>

	PR target/50809

	gcc/
	* config/arm/driver-arm.c (vendors): Make static.

--- a/gcc/config/arm/driver-arm.c
+++ b/gcc/config/arm/driver-arm.c
@@ -49,7 +49,7 @@ static struct vendor_cpu arm_cpu_table[] = {
     {NULL, NULL, NULL}
 };
 
-struct {
+static struct {
   const char *vendor_no;
   const struct vendor_cpu *vendor_parts;
 } vendors[] = {

Reply via email to