-O gen-C++ run-time warnings

This commit is contained in:
Vern Paxson 2024-07-19 13:49:39 -07:00
parent 857368fdee
commit 9cd0750eda
2 changed files with 11 additions and 0 deletions

View file

@ -115,6 +115,9 @@ public:
// function will not return but raise an InterpreterException.
[[noreturn]] void CPPRuntimeError(const char* fmt, ...) __attribute__((format(printf, 2, 3)));
// Similar, but for warnings. This function does return.
void CPPRuntimeWarning(const char* fmt, ...) __attribute__((format(printf, 2, 3)));
// Report a traffic weirdness, i.e., an unexpected protocol situation
// that may lead to incorrectly processing a connection.
void Weird(const char* name, const char* addl = "",