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

login
register
mail settings
Submitter Andrew Stubbs
Date Oct. 21, 2011, 10:39 a.m.
Message ID <4EA14BE0.5000604@codesourcery.com>
Download mbox | patch
Permalink /patch/120981/
State New
Headers show

Comments

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

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[] = {