From 8dd22dcbbfffae39e0a3bec4b6fb084ad7038b7b Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 11 Apr 2019 12:35:38 +0200 Subject: [PATCH] [libcalamaresui] bail() is a [[noreturn]] function --- src/libcalamaresui/Branding.cpp | 2 +- src/libcalamaresui/Branding.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcalamaresui/Branding.cpp b/src/libcalamaresui/Branding.cpp index 15c1c6125..e24e80472 100644 --- a/src/libcalamaresui/Branding.cpp +++ b/src/libcalamaresui/Branding.cpp @@ -353,7 +353,7 @@ Branding::initSimpleSettings( const YAML::Node& doc ) } -void +[[noreturn]] void Branding::bail( const QString& message ) { cError() << "FATAL in" diff --git a/src/libcalamaresui/Branding.h b/src/libcalamaresui/Branding.h index d97e0595a..5063a1df1 100644 --- a/src/libcalamaresui/Branding.h +++ b/src/libcalamaresui/Branding.h @@ -132,7 +132,7 @@ private: static const QStringList s_imageEntryStrings; static const QStringList s_styleEntryStrings; - void bail( const QString& message ); + [[noreturn]] void bail( const QString& message ); QString m_descriptorPath; QString m_componentName;