Wireshark-commits: [Wireshark-commits] master-2.6 116a129: extcap.c: fix compilation with gcc 8
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=116a1292e13adf81b57114a73e0b57a2fdb3a0ea
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.6
Repository: wireshark
Commits:
116a129 by Pascal Quantin (pascal.quantin@xxxxxxxxx):
extcap.c: fix compilation with gcc 8
extcap.c:228:37: error: cast between incompatible function types from ‘void (*)(iface_toolbar_value *)’ {aka ‘void (*)(struct _iface_toolbar_value *)’} to ‘void (*)(void *, void *)’ [-Werror=cast-function-type]
extcap.c:246:39: error: cast between incompatible function types from ‘void (*)(iface_toolbar_control *)’ {aka ‘void (*)(struct _iface_toolbar_control *)’} to ‘void (*)(void *, void *)’ [-Werror=cast-function-type]
extcap.c:521:32: error: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Werror=cast-function-type]
extcap.c:1440:35: error: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Werror=cast-function-type]
Change-Id: I2422e9b59c288907882c9ffd57cbae12011f7832
Reviewed-on: https://code.wireshark.org/review/27264
Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
(cherry picked from commit ac1c1c3e58532079daff6b807b7e12d5ba17199d)
Reviewed-on: https://code.wireshark.org/review/27288
Actions performed:
from fae1cd5 netscreen.c: fix compilation with gcc 8
adds 116a129 extcap.c: fix compilation with gcc 8
Summary of changes:
extcap.c | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)