From c8ef0fd07cdaef66c8581a7269b31248e26fe3d2 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 10 Aug 2018 04:44:22 +0200 Subject: [PATCH] Fix clang warnings. * src/base/ftdebug.c (ft_trace_level_enabled, ft_trace_level_disabled): Add `static' keyword. --- ChangeLog | 7 +++++++ src/base/ftdebug.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9c0b0124f..0da6bb1a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2018-08-10 Werner Lemberg + + Fix clang warnings. + + * src/base/ftdebug.c (ft_trace_level_enabled, + ft_trace_level_disabled): Add `static' keyword. + 2018-08-09 Alexei Podtelezhnikov [raster, smooth] Reinstate bitmap size limits. diff --git a/src/base/ftdebug.c b/src/base/ftdebug.c index 8c7e51c85..19b0058d3 100644 --- a/src/base/ftdebug.c +++ b/src/base/ftdebug.c @@ -102,10 +102,10 @@ /* array of trace levels, initialized to 0; */ /* this gets adjusted at run-time */ - int ft_trace_levels_enabled[trace_count]; + static int ft_trace_levels_enabled[trace_count]; /* array of trace levels, always initialized to 0 */ - int ft_trace_levels_disabled[trace_count]; + static int ft_trace_levels_disabled[trace_count]; /* a pointer to either `ft_trace_levels_enabled' */ /* or `ft_trace_levels_disabled' */