Silence a false-positive warning about uninitialised variable with ICC
ICC complains like so: harfbuzz-gpos.c(95): warning #592: variable "error" is used before its value is set return error; ^ However, line 95 is never executed because the condition on line 94 is always false. That's why it's a false positive. The same construct happens in the other two places. Still, silence the warning. Change-Id: I168d916d6837d4ac346facfd22b3e5b4e22ef7f0 Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
This commit is contained in:
parent
069469b468
commit
d244713340
2
src/3rdparty/harfbuzz/src/harfbuzz-gdef.c
vendored
2
src/3rdparty/harfbuzz/src/harfbuzz-gdef.c
vendored
@ -82,7 +82,7 @@ HB_Error HB_New_GDEF_Table( HB_GDEFHeader** retptr )
|
||||
HB_Error HB_Load_GDEF_Table( HB_Stream stream,
|
||||
HB_GDEFHeader** retptr )
|
||||
{
|
||||
HB_Error error;
|
||||
HB_Error error = HB_Err_Ok;
|
||||
HB_UInt cur_offset, new_offset, base_offset;
|
||||
|
||||
HB_GDEFHeader* gdef;
|
||||
|
2
src/3rdparty/harfbuzz/src/harfbuzz-gpos.c
vendored
2
src/3rdparty/harfbuzz/src/harfbuzz-gpos.c
vendored
@ -85,7 +85,7 @@ HB_Error HB_Load_GPOS_Table( HB_Stream stream,
|
||||
|
||||
HB_GPOSHeader* gpos;
|
||||
|
||||
HB_Error error;
|
||||
HB_Error error = HB_Err_Ok;
|
||||
|
||||
|
||||
if ( !retptr )
|
||||
|
2
src/3rdparty/harfbuzz/src/harfbuzz-gsub.c
vendored
2
src/3rdparty/harfbuzz/src/harfbuzz-gsub.c
vendored
@ -50,7 +50,7 @@ HB_Error HB_Load_GSUB_Table( HB_Stream stream,
|
||||
HB_GDEFHeader* gdef,
|
||||
HB_Stream gdefStream )
|
||||
{
|
||||
HB_Error error;
|
||||
HB_Error error = HB_Err_Ok;
|
||||
HB_UInt cur_offset, new_offset, base_offset;
|
||||
|
||||
HB_GSUBHeader* gsub;
|
||||
|
Loading…
x
Reference in New Issue
Block a user