diff options
author | João Valverde <j@v6e.pt> | 2022-12-29 20:06:19 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2022-12-29 23:48:56 +0000 |
commit | 1400d9272441c0117e24100ed760780045732c2f (patch) | |
tree | 52b142fe041d174c62a4b55b4a5b601eef883f42 /epan/dfilter/dfilter-int.h | |
parent | ba7917309a92447fb81bde61041377c68edc5fd7 (diff) |
dfilter: Add compilation warning for ambiguous syntax
$ dfilter 'frame contains fc'
Filter: frame contains fc
Warning: Interpreting "fc" as "Fibre Channel". Consider writing :fc or .fc.
(...)
Diffstat (limited to 'epan/dfilter/dfilter-int.h')
-rw-r--r-- | epan/dfilter/dfilter-int.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/dfilter/dfilter-int.h b/epan/dfilter/dfilter-int.h index b477d7418a..de546d7cda 100644 --- a/epan/dfilter/dfilter-int.h +++ b/epan/dfilter/dfilter-int.h @@ -32,6 +32,7 @@ struct epan_dfilter { int *interesting_fields; int num_interesting_fields; GPtrArray *deprecated; + GSList *warnings; char *expanded_text; GHashTable *references; GHashTable *raw_references; @@ -60,6 +61,7 @@ typedef struct { cleaning up memory allocations is inconvenient. Memory allocated from this pool will be freed when the dfwork_t context is destroyed. */ + GSList *warnings; } dfwork_t; /* @@ -103,6 +105,9 @@ void add_deprecated_token(dfwork_t *dfw, const char *token); void +add_compile_warning(dfwork_t *dfw, const char *format, ...); + +void free_deprecated(GPtrArray *deprecated); void |