Building with gcc 6:
captoinfo.c:227:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation] if (type != tbool && type != tcancel) ^~ captoinfo.c:232:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' continue; ^~~~~~~~
And so on, quite many of those. The checktermcap() function is testing termcap raw string table against list of the known types, using capsearch() helper to search from specific type list. If the capability name was matched, but the type is not matching, we should emit the warning and pick next capability.
Updated by Electric Monk about 3 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit e673284edbe30663db4830bfc2c74d629ff279e7 Author: Toomas Soome <email@example.com> Date: 2017-07-31T18:51:44.000Z 8196 captoinfo: misleading-indentation Reviewed by: Marcel Telka <firstname.lastname@example.org> Reviewed by: Robert Mustacchi <email@example.com> Reviewed by: Yuri Pankov <firstname.lastname@example.org> Approved by: Richard Lowe <email@example.com>