subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1674339 - /subversion/trunk/build/generator/gen_base.py
Date Fri, 17 Apr 2015 15:44:57 GMT
Author: danielsh
Date: Fri Apr 17 15:44:57 2015
New Revision: 1674339

URL: http://svn.apache.org/r1674339
Log:
Fix a compiler warning.

* build/generator/gen_base.py
  (GeneratorBase.write_config_keys): Mark config_keys.inc variables as static.

Modified:
    subversion/trunk/build/generator/gen_base.py

Modified: subversion/trunk/build/generator/gen_base.py
URL: http://svn.apache.org/viewvc/subversion/trunk/build/generator/gen_base.py?rev=1674339&r1=1674338&r2=1674339&view=diff
==============================================================================
--- subversion/trunk/build/generator/gen_base.py (original)
+++ subversion/trunk/build/generator/gen_base.py Fri Apr 17 15:44:57 2015
@@ -388,7 +388,7 @@ class GeneratorBase:
 
     for kind in ('file', 'section', 'option'):
       macros = groupby[getattr(self.FileSectionOptionEnum, kind)]
-      lines.append('const char *svn__valid_config_%ss[] = {' % (kind,))
+      lines.append('static const char *svn__valid_config_%ss[] = {' % (kind,))
       for macro in macros:
         lines.append('  %s,' % (macro,))
       # Remove ',' for c89 compatibility
@@ -396,7 +396,7 @@ class GeneratorBase:
       lines.append('};')
       lines.append('')
 
-    lines.append('const char *svn__empty_config_sections[] = {');
+    lines.append('static const char *svn__empty_config_sections[] = {');
     for section in empty_sections:
       lines.append('  %s,' % (section,))
     # Remove ',' for c89 compatibility



Mime
View raw message