diff --git a/hwpfilter/source/hfont.cxx b/hwpfilter/source/hfont.cxx index a16905cda66c..70e394282abc 100644 --- a/hwpfilter/source/hfont.cxx +++ b/hwpfilter/source/hfont.cxx @@ -80,7 +80,7 @@ void HWPFont::Read(HWPFile & hwpf) hwpf.Read2b(&nfonts, 1); if (!(nfonts > 0 && nfonts < MAXFONTS)) { - hwpf.SetState(HWP_InvalidFileFormat); + (void)hwpf.SetState(HWP_InvalidFileFormat); return; } fontnames[lang] = new char[nfonts * FONTNAMELEN];