Skip to content

Commit

Permalink
Fix compilation error on Windows
Browse files Browse the repository at this point in the history
function declared with 'noreturn' has a return statement
  • Loading branch information
martinburchell committed Mar 27, 2023
1 parent 81e0d08 commit 51f4d0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tablet_qt/lib/uifunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ bool amInGuiThread();
// Kill the app. Pops up a modal dialogue, then performs a hard kill.
[[ noreturn ]] void stopApp(
const QString& error,
const QString& title = QStringLiteral("CamCOPS internal bug: stopping"));
// QStringLiteral() here causing compilation error on Windows
// "function declared with 'noreturn' has a return statement"
const QString& title = "CamCOPS internal bug: stopping");

// ============================================================================
// Alerts
Expand Down

0 comments on commit 51f4d0f

Please sign in to comment.