Wireshark-dev: [Wireshark-dev] wslua: checkNSTime / pushNSTime undefined
From: chuck c <bubbasnmp@xxxxxxxxx>
Date: Thu, 27 May 2021 18:57:25 -0500
Is it a matter of tweaking the build to allow the warning to pass or does this require a code change?
W:\Development\wsbuild>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30037 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30037 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
Build FAILED.
"W:\Development\wsbuild\Wireshark.sln" (default target) (1) ->
"W:\Development\wsbuild\epan\wslua\wslua.vcxproj.metaproj" (default target) (73) ->
"W:\Development\wsbuild\epan\wslua\wslua.vcxproj" (default target) (79) ->
(ClCompile target) ->
W:\Development\wireshark\epan\wslua\wslua_tvb.c(897,19): warning C4013: 'pushNSTime' undefined; assuming extern returning int [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tvb.c(897,19): warning C4013: pushNSTime(L, nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tvb.c(897,19): warning C4013: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_field.c(148,27): warning C4013: 'pushNSTime' undefined; assuming extern returning int [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_field.c(148,27): warning C4013: pushNSTime(L,nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_field.c(148,27): warning C4013: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(111,31): warning C4013: 'pushNSTime' undefined; assuming extern returning int [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(111,31): warning C4013: pushNSTime(L,nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(111,31): warning C4013: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,121): warning C4013: 'checkNSTime' undefined; assuming extern returning int [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,121): warning C4013: item = proto_tree_add_time(tree_item->tree,hfid,tvbr->tvb->ws_tvb,tvbr->offset,tvbr->len,checkNSTime(L,1)); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,121): warning C4013: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,126): warning C4047: 'function': 'const nstime_t *' differs in levels of indirection from 'int' [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,126): warning C4047: item = proto_tree_add_time(tree_item->tree,hfid,tvbr->tvb->ws_tvb,tvbr->offset,tvbr->len,checkNSTime(L,1)); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,126): warning C4047: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,121): warning C4024: 'proto_tree_add_time': different types for formal and actual parameter 6 [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,121): warning C4024: item = proto_tree_add_time(tree_item->tree,hfid,tvbr->tvb->ws_tvb,tvbr->offset,tvbr->len,checkNSTime(L,1)); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,121): warning C4024: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,32): warning C4013: 'checkNSTime' undefined; assuming extern returning int [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,32): warning C4013: NSTime nstime = checkNSTime(L,2); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,32): warning C4013: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,1): warning C4047: 'initializing': 'NSTime' differs in levels of indirection from 'int' [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,1): warning C4047: NSTime nstime = checkNSTime(L,2); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,1): warning C4047: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(131,15): warning C4013: 'pushNSTime' undefined; assuming extern returning int [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(131,15): warning C4013: pushNSTime(L,nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(131,15): warning C4013: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
"W:\Development\wsbuild\Wireshark.sln" (default target) (1) ->
"W:\Development\wsbuild\epan\wslua\wslua.vcxproj.metaproj" (default target) (73) ->
"W:\Development\wsbuild\epan\wslua\wslua.vcxproj" (default target) (79) ->
(ClCompile target) ->
W:\Development\wireshark\epan\wslua\wslua_tvb.c(897,19): error C2220: the following warning is treated as an error [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tvb.c(897,19): error C2220: pushNSTime(L, nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tvb.c(897,19): error C2220: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_field.c(148,27): error C2220: the following warning is treated as an error [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_field.c(148,27): error C2220: pushNSTime(L,nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_field.c(148,27): error C2220: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(111,31): error C2220: the following warning is treated as an error [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(111,31): error C2220: pushNSTime(L,nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(111,31): error C2220: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,32): error C2220: the following warning is treated as an error [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,32): error C2220: NSTime nstime = checkNSTime(L,2); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,32): error C2220: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
9 Warning(s)
4 Error(s)
"W:\Development\wsbuild\Wireshark.sln" (default target) (1) ->
"W:\Development\wsbuild\epan\wslua\wslua.vcxproj.metaproj" (default target) (73) ->
"W:\Development\wsbuild\epan\wslua\wslua.vcxproj" (default target) (79) ->
(ClCompile target) ->
W:\Development\wireshark\epan\wslua\wslua_tvb.c(897,19): warning C4013: 'pushNSTime' undefined; assuming extern returning int [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tvb.c(897,19): warning C4013: pushNSTime(L, nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tvb.c(897,19): warning C4013: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_field.c(148,27): warning C4013: 'pushNSTime' undefined; assuming extern returning int [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_field.c(148,27): warning C4013: pushNSTime(L,nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_field.c(148,27): warning C4013: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(111,31): warning C4013: 'pushNSTime' undefined; assuming extern returning int [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(111,31): warning C4013: pushNSTime(L,nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(111,31): warning C4013: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,121): warning C4013: 'checkNSTime' undefined; assuming extern returning int [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,121): warning C4013: item = proto_tree_add_time(tree_item->tree,hfid,tvbr->tvb->ws_tvb,tvbr->offset,tvbr->len,checkNSTime(L,1)); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,121): warning C4013: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,126): warning C4047: 'function': 'const nstime_t *' differs in levels of indirection from 'int' [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,126): warning C4047: item = proto_tree_add_time(tree_item->tree,hfid,tvbr->tvb->ws_tvb,tvbr->offset,tvbr->len,checkNSTime(L,1)); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,126): warning C4047: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,121): warning C4024: 'proto_tree_add_time': different types for formal and actual parameter 6 [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,121): warning C4024: item = proto_tree_add_time(tree_item->tree,hfid,tvbr->tvb->ws_tvb,tvbr->offset,tvbr->len,checkNSTime(L,1)); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(383,121): warning C4024: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,32): warning C4013: 'checkNSTime' undefined; assuming extern returning int [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,32): warning C4013: NSTime nstime = checkNSTime(L,2); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,32): warning C4013: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,1): warning C4047: 'initializing': 'NSTime' differs in levels of indirection from 'int' [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,1): warning C4047: NSTime nstime = checkNSTime(L,2); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,1): warning C4047: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(131,15): warning C4013: 'pushNSTime' undefined; assuming extern returning int [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(131,15): warning C4013: pushNSTime(L,nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(131,15): warning C4013: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
"W:\Development\wsbuild\Wireshark.sln" (default target) (1) ->
"W:\Development\wsbuild\epan\wslua\wslua.vcxproj.metaproj" (default target) (73) ->
"W:\Development\wsbuild\epan\wslua\wslua.vcxproj" (default target) (79) ->
(ClCompile target) ->
W:\Development\wireshark\epan\wslua\wslua_tvb.c(897,19): error C2220: the following warning is treated as an error [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tvb.c(897,19): error C2220: pushNSTime(L, nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tvb.c(897,19): error C2220: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_field.c(148,27): error C2220: the following warning is treated as an error [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_field.c(148,27): error C2220: pushNSTime(L,nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_field.c(148,27): error C2220: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(111,31): error C2220: the following warning is treated as an error [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(111,31): error C2220: pushNSTime(L,nstime); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_tree.c(111,31): error C2220: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,32): error C2220: the following warning is treated as an error [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,32): error C2220: NSTime nstime = checkNSTime(L,2); [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
W:\Development\wireshark\epan\wslua\wslua_frame_info.c(112,32): error C2220: ^ [W:\Development\wsbuild\epan\wslua\wslua.vcxproj]
9 Warning(s)
4 Error(s)
- Follow-Ups:
- Prev by Date: Re: [Wireshark-dev] Having trouble cloning repo in a new VM
- Next by Date: Re: [Wireshark-dev] wslua: checkNSTime / pushNSTime undefined
- Previous by thread: Re: [Wireshark-dev] Can the OSS-FUZZ tool be modified to generate a pcap test file?
- Next by thread: Re: [Wireshark-dev] wslua: checkNSTime / pushNSTime undefined
- Index(es):