@@ -13,96 +13,96 @@ typedef void * (*nvapi_QueryInterface_t)(int);
1313// Constructors for NvAPI structures that just zero the memory and set the right version
1414NV_DELTA_ENTRY::NV_DELTA_ENTRY ()
1515{
16- memset (this , 0 , sizeof *this );
16+ memset (( void *) this , 0 , sizeof *this );
1717}
1818
1919NV_GPU_PSTATES20_V2::NV_GPU_PSTATES20_V2 ()
2020{
21- memset (this , 0 , sizeof *this );
21+ memset (( void *) this , 0 , sizeof *this );
2222 version = NV_STRUCT_VERSION (NV_GPU_PSTATES20_V2, 2 );
2323}
2424
2525NV_CLOCK_FREQUENCIES_V2::NV_CLOCK_FREQUENCIES_V2 ()
2626{
27- memset (this , 0 , sizeof *this );
27+ memset (( void *) this , 0 , sizeof *this );
2828 version = NV_STRUCT_VERSION (NV_CLOCK_FREQUENCIES_V2, 2 );
2929}
3030
3131NV_GPU_PERFORMANCE_TABLE_V1::NV_GPU_PERFORMANCE_TABLE_V1 ()
3232{
33- memset (this , 0 , sizeof *this );
33+ memset (( void *) this , 0 , sizeof *this );
3434 version = NV_STRUCT_VERSION (NV_GPU_PERFORMANCE_TABLE_V1, 1 );
3535}
3636
3737NV_DYNAMIC_PSTATES_V1::NV_DYNAMIC_PSTATES_V1 ()
3838{
39- memset (this , 0 , sizeof *this );
39+ memset (( void *) this , 0 , sizeof *this );
4040 version = NV_STRUCT_VERSION (NV_DYNAMIC_PSTATES_V1, 1 );
4141}
4242
4343NV_GPU_POWER_POLICIES_INFO_V1::NV_GPU_POWER_POLICIES_INFO_V1 ()
4444{
45- memset (this , 0 , sizeof *this );
45+ memset (( void *) this , 0 , sizeof *this );
4646 version = NV_STRUCT_VERSION (NV_GPU_POWER_POLICIES_INFO_V1, 1 );
4747}
4848
4949NV_GPU_POWER_POLICIES_STATUS_V1::NV_GPU_POWER_POLICIES_STATUS_V1 ()
5050{
51- memset (this , 0 , sizeof *this );
51+ memset (( void *) this , 0 , sizeof *this );
5252 version = NV_STRUCT_VERSION (NV_GPU_POWER_POLICIES_STATUS_V1, 1 );
5353}
5454
5555NV_GPU_VOLTAGE_DOMAINS_STATUS_V1::NV_GPU_VOLTAGE_DOMAINS_STATUS_V1 ()
5656{
57- memset (this , 0 , sizeof *this );
57+ memset (( void *) this , 0 , sizeof *this );
5858 version = NV_STRUCT_VERSION (NV_GPU_VOLTAGE_DOMAINS_STATUS_V1, 1 );
5959}
6060
6161NV_GPU_THERMAL_SETTINGS_V2::NV_GPU_THERMAL_SETTINGS_V2 ()
6262{
63- memset (this , 0 , sizeof *this );
63+ memset (( void *) this , 0 , sizeof *this );
6464 version = NV_STRUCT_VERSION (NV_GPU_THERMAL_SETTINGS_V2, 2 );
6565}
6666
6767NV_GPU_THERMAL_POLICIES_INFO_V2::NV_GPU_THERMAL_POLICIES_INFO_V2 ()
6868{
69- memset (this , 0 , sizeof *this );
69+ memset (( void *) this , 0 , sizeof *this );
7070 version = NV_STRUCT_VERSION (NV_GPU_THERMAL_POLICIES_INFO_V2, 2 );
7171}
7272
7373NV_GPU_THERMAL_POLICIES_STATUS_V2::NV_GPU_THERMAL_POLICIES_STATUS_V2 ()
7474{
75- memset (this , 0 , sizeof *this );
75+ memset (( void *) this , 0 , sizeof *this );
7676 version = NV_STRUCT_VERSION (NV_GPU_THERMAL_POLICIES_STATUS_V2, 2 );
7777}
7878
7979NV_GPU_COOLER_SETTINGS_V2::NV_GPU_COOLER_SETTINGS_V2 ()
8080{
81- memset (this , 0 , sizeof *this );
81+ memset (( void *) this , 0 , sizeof *this );
8282 version = NV_STRUCT_VERSION (NV_GPU_COOLER_SETTINGS_V2, 2 );
8383}
8484
8585NV_GPU_COOLER_LEVELS_V1::NV_GPU_COOLER_LEVELS_V1 ()
8686{
87- memset (this , 0 , sizeof *this );
87+ memset (( void *) this , 0 , sizeof *this );
8888 version = NV_STRUCT_VERSION (NV_GPU_COOLER_LEVELS_V1, 1 );
8989}
9090
9191NV_MEMORY_INFO_V2::NV_MEMORY_INFO_V2 ()
9292{
93- memset (this , 0 , sizeof *this );
93+ memset (( void *) this , 0 , sizeof *this );
9494 version = NV_STRUCT_VERSION (NV_MEMORY_INFO_V2, 2 );
9595}
9696
9797NV_DISPLAY_DRIVER_VERSION_V1::NV_DISPLAY_DRIVER_VERSION_V1 ()
9898{
99- memset (this , 0 , sizeof *this );
99+ memset (( void *) this , 0 , sizeof *this );
100100 version = NV_STRUCT_VERSION (NV_DISPLAY_DRIVER_VERSION_V1, 1 );
101101}
102102
103103NV_I2C_INFO_V3::NV_I2C_INFO_V3 ()
104104{
105- memset (this , 0 , sizeof * this );
105+ memset (( void *) this , 0 , sizeof * this );
106106 version = NV_STRUCT_VERSION (NV_I2C_INFO_V3, 3 );
107107}
108108
@@ -268,7 +268,7 @@ static bool QueryInterfaceOpaque(nvapi_QueryInterface_t query_interface, NV_U32
268268template <typename F>
269269static void QueryInterfaceCast (nvapi_QueryInterface_t query_interface, NV_U32 id, const char */*function_name*/, F &function_pointer)
270270{
271- const bool result = QueryInterfaceOpaque (query_interface, id, (void **)&function_pointer);
271+ /* const bool result = */ QueryInterfaceOpaque (query_interface, id, (void **)&function_pointer);
272272 // //Log::write("%s querying interface '0x%08x' '%s'", result ? "success" : "failure", id, function_name);
273273}
274274
0 commit comments