mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Merge branch 'noreturn' of https://github.com/MaxKellermann/zeek
Minor formatting change in merge so [[noreturn]] is consistently on same line as function declarations. * 'noreturn' of https://github.com/MaxKellermann/zeek: threading/MsgThread: add [[noreturn]] to InternalError() Flare: add [[noreturn]] to bad_pipe_op() Obj: add [[noreturn]] attributes to Internal(), bad_ref() Reporter: add [[noreturn]] attribute to several methods
This commit is contained in:
commit
3996a54302
6 changed files with 18 additions and 8 deletions
|
@ -93,7 +93,7 @@ public:
|
|||
BadTag(text, tag_to_text_func(t1), tag_to_text_func(t2)); \
|
||||
}
|
||||
|
||||
void Internal(const char* msg) const;
|
||||
[[noreturn]] void Internal(const char* msg) const;
|
||||
void InternalWarning(const char* msg) const;
|
||||
|
||||
virtual void Describe(ODesc* d) const { /* FIXME: Add code */ };
|
||||
|
@ -152,7 +152,7 @@ private:
|
|||
// Prints obj to stderr, primarily for debugging.
|
||||
extern void print(const BroObj* obj);
|
||||
|
||||
extern void bad_ref(int type);
|
||||
[[noreturn]] extern void bad_ref(int type);
|
||||
|
||||
// Sometimes useful when dealing with BroObj subclasses that have their
|
||||
// own (protected) versions of Error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue