mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

For event/hook handlers that had a previous declaration, any &default arguments are ineffective. Only &default uses in the initial prototype's arguments have an effect (that includes if the handler is actually the site at which the declaration occurs).
8 lines
448 B
Text
8 lines
448 B
Text
warning in /home/jon/pro/zeek/zeek/testing/btest/.tmp/language.ineffective-default-args/ineffective-default-args.zeek, line 9: &default on parameter 'b' has no effect (not a event declaration)
|
|
warning in /home/jon/pro/zeek/zeek/testing/btest/.tmp/language.ineffective-default-args/ineffective-default-args.zeek, line 19: &default on parameter 'c' has no effect (not a event declaration)
|
|
bar, A, B
|
|
baz, A, B
|
|
qux, Q, Q
|
|
grault, A, B
|
|
corge, C
|
|
foo c, C
|