Loading... (original) (raw)

JDK-8132985

: Crash in freetypescaler.c due to double free

eliminated use of the local variable "stream" but it is still declared

The Microsoft Visual C compiler then issues a warning:

c:/jprt/T/P1/210300.prrace/s//libfontmanager/freetypeScaler.c(106) : error C2220: warning treated as error - no 'object' file generated
jdk/src/java.desktop/share/native/libfontmanager/freetypeScaler.c(106) : warning C4101: 'stream' : unreferenced local variable

Since warnings are treated as errors the build then fails.

I do not know if this fails with vs2010 but it does fail on the
official VS2013 compiler.

The fix is to remove the declaration