processhacker / plugins-extra

These are highly unstable, buggy, incomplete plugins that are not included with Process Hacker by default.
https://processhacker.sourceforge.io/
322 stars 113 forks source link

[FIXED] Build error after Git 7a938fdd7 - CL error c2220 and warning C4002 in to DbgView, FirewallMonitor and WaitChain plugins #75

Closed VictorVG closed 4 years ago

VictorVG commented 4 years ago

VC++ 2019 v16.7.4, log:

Windows: Windows NT 6.1.7601.0
WindowsSDK: 19041 (16.7.30310.162)
VisualStudio: VisualStudio/16.7.4+30517.126

Building... 3.0.7956.3429 (f3599085) [master]

Building Extra-Plugins
[ERROR]
.\plugins-extra\DbgViewPlugin\dialog.c (180,25): error C2220: the following warning is treated as an error [.\plugins-extra\DbgViewPlugin\DbgViewPlugin.vcxproj]
.\plugins-extra\DbgViewPlugin\dialog.c (180,25): warning C4002: too many arguments to call a macro like a function like "ProcessHacker_ToggleVisible" [.\plugins-extra\DbgViewPlugin\DbgViewPlugin.vcxproj]
.\plugins-extra\DbgViewPlugin\dialog.c (181,25): warning C4002: too many arguments to call a macro like a function like "ProcessHacker_SelectTabPage" [.\plugins-extra\DbgViewPlugin\DbgViewPlugin.vcxproj]
.\plugins-extra\DbgViewPlugin\dialog.c (182.25): warning C4002: too many arguments to call a macro like a function like "ProcessHacker_SelectProcessNode" [.\plugins-extra\DbgViewPlugin\DbgViewPlugin.vcxproj]
.\plugins-extra\FirewallMonitorPlugin\fwtab.c (1010,21): warning C4002: too many arguments to call a macro like function "ProcessHacker_Destroy" [.\plugins-extra\FirewallMonitorPlugin\FirewallMonitorPlugin.vcxproj]
.\plugins-extra\FirewallMonitorPlugin\fwtab.c (1014,21): warning C4002: too many arguments to call a macro like the function "ProcessHacker_CancelEarlyShutdown" [.\plugins-extra\FirewallMonitorPlugin\FirewallMonitorPlugin.vcxproj]
.\plugins-extra\FirewallMonitorPlugin\fwtab.c (188,20): error C2220: The following warning is considered an error [.\plugins-extra\FirewallMonitorPlugin\FirewallMonitorPlugin.vcxproj]
.\plugins-extra\FirewallMonitorPlugin\fwtab.c (188,20): warning C4002: too many arguments to call a macro like the function "ProcessHacker_CreateTabPage" [.\plugins-extra\FirewallMonitorPlugin\FirewallMonitorPlugin.vcxproj]
.\plugins-extra\FirewallMonitorPlugin\fwtab.c (862.5): warning C4002: too many arguments to call a macro like the function "ProcessHacker_Invoke" [.\plugins-extra\FirewallMonitorPlugin\FirewallMonitorPlugin.vcxproj]
.\plugins-extra\FirewallMonitorPlugin\fwtab.c (998,17): warning C4002: too many arguments to call a macro like the function "ProcessHacker_PrepareForEarlyShutdown" [.\plugins-extra\FirewallMonitorPlugin\FirewallMonitorPlugin.vcxproj]
.\plugins-extra\WaitChainPlugin\main.c (313,29): error C2220: The following warning is treated as an error [.\plugins-extra\WaitChainPlugin\WaitChainPlugin.vcxproj]
.\plugins-extra\WaitChainPlugin\main.c (313,29): warning C4002: too many arguments to call a macro like a function like "ProcessHacker_SelectTabPage" [.\plugins-extra\WaitChainPlugin\WaitChainPlugin.vcxproj]

I can't resolving this issues and needed help...

VictorVG commented 4 years ago

Big thanks! Fixed.