]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the following -Werror warning from clang 10.0.0 in procstat:
authorDimitry Andric <dim@FreeBSD.org>
Wed, 29 Jan 2020 17:01:02 +0000 (17:01 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Wed, 29 Jan 2020 17:01:02 +0000 (17:01 +0000)
commit7bf1ff65fc9927b432ab4af9b1de70208ed5244b
treed94e9eb52dc77c2bb8c04ecf64508a7bb6249700
parentb9f5806c259feade8d173a0ccece2e9e8959fbea
Fix the following -Werror warning from clang 10.0.0 in procstat:

usr.bin/procstat/procstat_sigs.c:79:3: error: misleading indentation; statement is not part of the previous 'else' [-Werror,-Wmisleading-indentation]
                xo_close_container(name);
                ^
usr.bin/procstat/procstat_sigs.c:77:4: note: previous statement is here
        } else
          ^

The intent was to group the xo_close_container() call to the previous
snprintf() call.

MFC after: 3 days
usr.bin/procstat/procstat_sigs.c