Home
last modified time | relevance | path

Searched hist:"70 cbdf538e658a2d9591303b02da9d6b78002cd9" (Results 1 – 1 of 1) sorted by relevance

/openbmc/bmcweb/redfish-core/lib/
H A Dvirtual_media.hppdiff 70cbdf538e658a2d9591303b02da9d6b78002cd9 Fri Mar 03 22:07:25 CST 2023 George Liu <liuxiwei@inspur.com> Fix local CI failure issue

Error message:
redfish-core/lib/virtual_media.hpp:308:72: style: Parameter 'item'
can be declared as reference to const. However it seems that
'afterGetVmData' is a callback function, if 'item' is declared with
const you might also need to cast function pointer(s).
[constParameterCallback]
dbus::utility::DBusInteracesMap>& item)
^
redfish-core/lib/virtual_media.hpp:346:41: note: You might need to
cast the function pointer here
std::bind_front(&afterGetVmData, name));
^
redfish-core/lib/virtual_media.hpp:308:72: note: Parameter 'item' can
be declared as reference to const
dbus::utility::DBusInteracesMap>& item)
^

This regressed in commit: 79fdf63e2c4148593bb7aec4a3f471ade4c5cba0

Tested: Local CI passes

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ia68e63ccaa069aedda01a11ce02aa2ef41021a07