summaryrefslogtreecommitdiff
path: root/src/pshinter
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2013-08-01 12:20:20 +0200
committerWerner Lemberg <wl@gnu.org>2013-08-01 12:20:20 +0200
commite8ed2d621e4182956488ce15c5611472345e63be (patch)
tree216c5fb83b56024957364c9498be374246087809 /src/pshinter
parent72f5ff5bbb6f3467baf13e4c014f3f50479e3b96 (diff)
downloadfreetype2-e8ed2d621e4182956488ce15c5611472345e63be.tar.gz
Another round of cppcheck nitpicks.
The call was (from the top-level of the FreeType tree): cppcheck --force \ --enable=all \ -I /usr/include \ -I /usr/local/include \ -I /usr/lib/gcc/i586-suse-linux/4.7/include \ -I include \ -I include/freetype \ -I include/freetype/config \ -I include/freetype/internal \ -DFT2_BUILD_LIBRARY \ . &> cppcheck.log using cppcheck git commit f7e93f99. Note that cppcheck still can't handle `#include FOO' (with `FOO' a macro). */* Improve variable scopes. */* Remove redundant initializations which get overwritten. * src/gxvalid/*: Comment out redundant code or guard it with FT_DEBUG_LEVEL_TRACE.
Diffstat (limited to 'src/pshinter')
-rw-r--r--src/pshinter/pshglob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pshinter/pshglob.c b/src/pshinter/pshglob.c
index 9285efc9e..f75bae451 100644
--- a/src/pshinter/pshglob.c
+++ b/src/pshinter/pshglob.c
@@ -5,7 +5,7 @@
/* PostScript hinter global hinting management (body). */
/* Inspired by the new auto-hinter module. */
/* */
-/* Copyright 2001-2004, 2006, 2010, 2012 by */
+/* Copyright 2001-2004, 2006, 2010, 2012, 2013 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used */
@@ -757,7 +757,7 @@
FT_Fixed x_delta,
FT_Fixed y_delta )
{
- PSH_Dimension dim = &globals->dimension[0];
+ PSH_Dimension dim;
dim = &globals->dimension[0];