Skip to content

Commit 94f8b38

Browse files
committed
fix gcc compilation
1 parent f477288 commit 94f8b38

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

common/chat-parser.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ void common_chat_msg_parser::finish() {
8888
}
8989
}
9090

91+
[[noreturn]]
9192
void common_chat_msg_parser::incomplete(const std::string & message) {
9293
if (is_partial_) {
9394
finish();

common/chat-parser.h

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class common_chat_msg_parser {
6363

6464
void finish();
6565

66+
[[noreturn]]
6667
void incomplete(const std::string & message);
6768

6869
bool consume_spaces();

common/regex-partial.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "regex-partial.h"
22
#include "common.h"
33
#include <functional>
4+
#include <optional>
45

56
common_regex::common_regex(const std::string & pattern) :
67
pattern(pattern),

0 commit comments

Comments
 (0)