mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Silence compiler warnings related to deprecated TYPE_COUNTER
This commit is contained in:
parent
22b401f52f
commit
f1b0d9a8f0
2 changed files with 15 additions and 0 deletions
|
@ -1542,6 +1542,10 @@ bool same_type(const Type& arg_t1, const Type& arg_t2,
|
|||
case TYPE_BOOL:
|
||||
case TYPE_INT:
|
||||
case TYPE_COUNT:
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
case TYPE_COUNTER:
|
||||
#pragma GCC diagnostic pop
|
||||
case TYPE_DOUBLE:
|
||||
case TYPE_TIME:
|
||||
case TYPE_INTERVAL:
|
||||
|
@ -1743,6 +1747,10 @@ bool is_assignable(TypeTag t)
|
|||
case TYPE_BOOL:
|
||||
case TYPE_INT:
|
||||
case TYPE_COUNT:
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
case TYPE_COUNTER:
|
||||
#pragma GCC diagnostic pop
|
||||
case TYPE_DOUBLE:
|
||||
case TYPE_TIME:
|
||||
case TYPE_INTERVAL:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue