Fixed compilation warnings

This commit is contained in:
Armin Novak 2021-09-07 08:16:46 +02:00 committed by akallabeth
parent 4cc0fbca33
commit f7c7211aad
2 changed files with 8 additions and 6 deletions

View File

@ -25,6 +25,12 @@
#define TAG MODULE_TAG("demo")
struct demo_custom_data
{
proxyPluginsManager* mgr;
int somesetting;
};
static constexpr char plugin_name[] = "demo";
static constexpr char plugin_desc[] = "this is a test plugin";
@ -36,7 +42,7 @@ static BOOL demo_plugin_unload(proxyPlugin* plugin)
/* Here we have to free up our custom data storage. */
if (plugin)
delete (plugin->custom);
delete static_cast<struct demo_custom_data*>(plugin->custom);
return TRUE;
}
@ -282,11 +288,6 @@ extern "C"
BOOL proxy_module_entry_point(proxyPluginsManager* plugins_manager, void* userdata)
{
struct demo_custom_data
{
proxyPluginsManager* mgr;
int somesetting;
};
struct demo_custom_data* custom;
proxyPlugin plugin = {};

View File

@ -23,6 +23,7 @@
#include <stdio.h>
#include <string.h>
#include <winpr/crt.h>
#include <winpr/path.h>
#include <winpr/collections.h>
#include <winpr/cmdline.h>