Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e0202b3

Browse files
committedMar 14, 2025·
fix gcc compilation
1 parent f477288 commit e0202b3

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-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),

‎tests/test-regex-partial.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include <sstream>
66
#include <iostream>
7+
#include <optional>
78

89
template <class T> static void assert_equals(const T & expected, const T & actual) {
910
if (expected != actual) {

0 commit comments

Comments
 (0)
Please sign in to comment.