Revision history [back]
Wireshark build error
I'm getting the following error while trying to build a plugin for wireshark 3.2.1 on my PC (windows 10)
C:\Users\ravishas\Desktop\wsnew\plugins\epan\expand\packet-expand.c(778,43): warning C4113: 'void (__cdecl *)(tvbuff_t *,packet_info *,proto_tree *)' differs in parameter lists from 'dissector_t' [C:\Development\build_try\plugins\epan\expand\expand.vcxproj]
C:\Users\ravishas\Desktop\wsnew\plugins\epan\expand\packet-expand.c(778,43): warning C4133: 'function': incompatible types - from 'void (__cdecl *)(tvbuff_t *,packet_info *,proto_tree *)' to 'dissector_t' [C:\Development\build_try\plugins\epan\expand\expand.vcxproj]
I have looked into the function and there is an additional " void * " parameter in the dissector_t function. Should that parameter be retained or is there any other workaround?
Thanks in advance
Wireshark build error
I'm getting the following error while trying to build a plugin for wireshark 3.2.1 on my PC (windows 10)
C:\Users\ravishas\Desktop\wsnew\plugins\epan\expand\packet-expand.c(778,43): warning C4113: 'void (__cdecl *)(tvbuff_t *,packet_info *,proto_tree *)' differs in parameter lists from 'dissector_t' [C:\Development\build_try\plugins\epan\expand\expand.vcxproj]
C:\Users\ravishas\Desktop\wsnew\plugins\epan\expand\packet-expand.c(778,43): warning C4133: 'function': incompatible types - from 'void (__cdecl *)(tvbuff_t *,packet_info *,proto_tree *)' to 'dissector_t' [C:\Development\build_try\plugins\epan\expand\expand.vcxproj]
I have looked into the function and there is an additional " void * " parameter in the dissector_t function. Should that parameter be retained or is there any other workaround?
Thanks in advance
Wireshark build error
I'm getting the following error while trying to build a plugin for wireshark 3.2.1 on my PC (windows 10)
C:\Users\ravishas\Desktop\wsnew\plugins\epan\expand\packet-expand.c(778,43): warning C4113: 'void (__cdecl *)(tvbuff_t *,packet_info *,proto_tree *)' differs in parameter para
meter lists from 'dissector_t' [C:\Development\build_try\plugins\epan\expand\expand.vcxproj]
[C:\Development\build_try\plugins\epan\expand\expand.vcxproj]
C:\Users\ravishas\Desktop\wsnew\plugins\epan\expand\packet-expand.c(778,43): warning C4133: 'function': incompatible types - from 'void (__cdecl *)(tvbuff_t *,packet_info *,packet
_info *,proto_tree *)' to 'dissector_t' [C:\Development\build_try\plugins\epan\expand\expand.vcxproj]
"C:\Development\build_try\Wireshark.sln" (default target) (1) ->
"C:\Development\build_try\plugins\epan\expand\expand.vcxproj.metaproj" (default target) (25) ->
"C:\Development\build_try\plugins\epan\expand\expand.vcxproj" (default target) (144) ->
(ClCompile target) ->
C:\Users\ravishas\Desktop\wsnew\plugins\epan\expand\packet-expand.c(778,43): error C2220: the following warning is treated as an error [C:\Development\build_try\plug
ins\epan\expand\expand.vcxproj]
I have looked into the function and there is an additional " void * " parameter in the dissector_t function. Should that parameter be retained or is there any other workaround?
Thanks in advanceadvance