[[fallthrough]] if C++17 only

This commit is contained in:
orignal 2020-02-29 09:21:50 -05:00
parent fe1724e7e6
commit 2ffe62ba41
5 changed files with 19 additions and 4 deletions

View file

@ -911,7 +911,10 @@ namespace garlic
case eGarlicDeliveryTypeDestination:
LogPrint (eLogDebug, "Garlic: type destination");
buf += 32; // TODO: check destination
[[fallthrough]]; // no break here
#if (__cplusplus >= 201703L) // C++ 17 or higher
[[fallthrough]];
#endif
// no break here
case eGarlicDeliveryTypeLocal:
{
LogPrint (eLogDebug, "Garlic: type local");