Skip to content

Commit bf6042d

Browse files
author
gberkes
committed
Marked the process_request() function with the [[noreturn]] attribute, as pthread_exit() does not return.
1 parent 7b56db1 commit bf6042d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/reading_logs_via_rule_message/reading_logs_via_rule_message.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct data_ms {
7373
};
7474

7575

76-
static void *process_request(void *data) {
76+
[[noreturn]] static void *process_request(void *data) {
7777
struct data_ms *a = (struct data_ms *)data;
7878
modsecurity::ModSecurity *modsec = a->modsec;
7979
modsecurity::RulesSet *rules = a->rules;

0 commit comments

Comments
 (0)