Files
Vasant Hegde 80f0246073 hw/ipmi: Fix misleading-indentation failures
Hitting below issue on recent distro (fedora-rawhide).

sample failure:
---------------
[ HOSTCC ]  hw/ipmi/test/run-fru.c
In file included from hw/ipmi/test/run-fru.c:10:
hw/ipmi/test/../ipmi-fru.c: In function 'fru_fill_product_info':
hw/ipmi/test/../ipmi-fru.c:80:17: error: this 'if' clause does not guard... [-Werror=misleading-indentation]

   80 |                 if (rc < 1) return OPAL_PARAMETER; rc; })
      |                 ^~
hw/ipmi/test/../ipmi-fru.c:102:18: note: in expansion of macro 'FRU_INSERT_STRING'
  102 |         index += FRU_INSERT_STRING(&buf[index], info->manufacturer);
      |                  ^~~~~~~~~~~~~~~~~
hw/ipmi/test/../ipmi-fru.c:80:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   80 |                 if (rc < 1) return OPAL_PARAMETER; rc; })
      |                                                    ^~
hw/ipmi/test/../ipmi-fru.c:102:18: note: in expansion of macro 'FRU_INSERT_STRING'
  102 |         index += FRU_INSERT_STRING(&buf[index], info->manufacturer);
      |                  ^~~~~~~~~~~~~~~~~

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Reviewed-by: Dan HorĂ¡k <dan@danny.cz>
2021-04-07 12:09:52 +05:30
..
2019-07-26 15:08:03 +10:00