Because of unclear parentheses on the `ErrorNotification`
gcc-9 issued a warning about the `NNTR_THROW_IF_CLEANUP` macro, when
no stream is given.
This patch fixes the issue.
Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
#define NNTR_THROW_IF(pred, err) \
if ((pred)) \
- nntrainer::exception::internal::ErrorNotification<err>()
+ nntrainer::exception::internal::ErrorNotification<err> {}
#define NNTR_THROW_IF_CLEANUP(pred, err, cleanup_func) \
if ((pred)) \
- nntrainer::exception::internal::ErrorNotification<err>(cleanup_func)
+ nntrainer::exception::internal::ErrorNotification<err> { cleanup_func }
namespace nntrainer {