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:
Thiago Macieira 2012-08-14 13:29:24 +02:00 committed by Qt by Nokia
parent 069469b468
commit d244713340
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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 )

View File

@ -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;