diff mbox

[commit,arm] Fix pr50809: build failure with --enable-build-with-cxx

Message ID 4EA14BE0.5000604@codesourcery.com
State New
Headers show

Commit Message

Andrew Stubbs Oct. 21, 2011, 10:39 a.m. UTC
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
diff mbox

Patch

2011-10-21  Andrew Stubbs  <ams@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[] = {