Home
last modified time | relevance | path

Searched hist:"88 c6a8237f03409a7ec9a95f79d03fc67f5f94bd" (Results 1 – 2 of 2) sorted by relevance

/openbmc/sdbusplus/include/sdbusplus/
H A Dmessage.hppdiff 88c6a8237f03409a7ec9a95f79d03fc67f5f94bd Tue Sep 10 22:59:47 CDT 2024 Lei YU <yulei.sh@bytedance.com> message: Fix unpack void type

The template unpack<void> is deduced as one argument instead of 0, and
results in below compile error:
```
error: variable or field ‘r’ declared void
error: return-statement with a value, in function returning ‘void’ [-fpermissive]
```

Fix this by checking void if `sizeof...(Args) == 1` and return void.
Also add a unit test case to make sure the code compiles.

Change-Id: I74cca180783645496863393be37215f1d6f4ca02
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
/openbmc/sdbusplus/test/message/
H A Dread.cppdiff 88c6a8237f03409a7ec9a95f79d03fc67f5f94bd Tue Sep 10 22:59:47 CDT 2024 Lei YU <yulei.sh@bytedance.com> message: Fix unpack void type

The template unpack<void> is deduced as one argument instead of 0, and
results in below compile error:
```
error: variable or field ‘r’ declared void
error: return-statement with a value, in function returning ‘void’ [-fpermissive]
```

Fix this by checking void if `sizeof...(Args) == 1` and return void.
Also add a unit test case to make sure the code compiles.

Change-Id: I74cca180783645496863393be37215f1d6f4ca02
Signed-off-by: Lei YU <yulei.sh@bytedance.com>