diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2014-07-23 12:26:05 +0200 |
---|---|---|
committer | Michal Labedzki <michal.labedzki@tieto.com> | 2014-09-22 10:52:03 +0000 |
commit | 56a09d24dcdcaddae1cb67a18bbc2fd588c427ed (patch) | |
tree | a9961e4700a00680f7247d714709e6164f9e5d9d /wiretap/logcat.h | |
parent | c1d6a4123a2e100a77ae8ec2b3d01544f168febc (diff) | |
download | wireshark-56a09d24dcdcaddae1cb67a18bbc2fd588c427ed.tar.gz |
Try to fix some buildbot warnings
Most interesting are:
warning: cannot optimize loop, the loop counter may overflow [-Wunsafe-loop-optimizations]
warning: ISO C forbids zero-size array [-Wpedantic]
warning: ISO C90 doesn't support unnamed structs/unions [-Wpedantic]
warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual
warning: initializer element is not computable at load time [enabled by default]
Change-Id: I5573c6bdca856a304877d9bef643f8c0fa93cdaf
Reviewed-on: https://code.wireshark.org/review/3174
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'wiretap/logcat.h')
-rw-r--r-- | wiretap/logcat.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/logcat.h b/wiretap/logcat.h index 9b2ea5cc25..71a0e7da5b 100644 --- a/wiretap/logcat.h +++ b/wiretap/logcat.h @@ -39,7 +39,7 @@ struct logger_entry { gint32 tid; /* generating process's tid */ gint32 sec; /* seconds since Epoch */ gint32 nsec; /* nanoseconds */ - char msg[0]; /* the entry's payload */ +/* char msg[0]; *//* the entry's payload */ }; struct logger_entry_v2 { @@ -53,8 +53,8 @@ struct logger_entry_v2 { /* v1: not present */ guint32 euid; /* v2: effective UID of logger */ guint32 lid; /* v3: log id of the payload */ - }; - char msg[0]; /* the entry's payload */ + } id; +/* char msg[0]; *//* the entry's payload */ }; int logcat_open(wtap *wth, int *err, gchar **err_info); |