Project

General

Profile

Bug #8196

Updated by Toomas Soome about 2 years ago

Building with gcc 6:

<pre>
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;
^~~~~~~~
</pre>

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.

Back