diff options
author | Davide Beatrici <davidebeatrici@gmail.com> | 2017-01-22 18:00:49 +0300 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2017-01-22 18:20:56 +0300 |
commit | 6096b74a1c42cfeaca9cde5df76a21fc3174f167 (patch) | |
tree | b6ff23e1e5c7d2469236596f8450e1c4d10313b6 /plugins/bf2142 | |
parent | e92b27b8ca219d57a9ba689a8a2b4cb32fdb8896 (diff) |
plugins: Fix MinGW compilation warnings and errors
warning: converting to non-pointer type 'procptr32_t {aka long unsigned int}' from NULL [-Wconversion-null]
ql\ql.cpp:87: warning: comparison is always true due to limited range of data type [-Wtype-limits]
sto\sto.cpp:11: error: 'numeric_limits' is not a member of 'std'
Not fixed:
sto\sto.cpp:55: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Diffstat (limited to 'plugins/bf2142')
-rw-r--r-- | plugins/bf2142/bf2142.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bf2142/bf2142.cpp b/plugins/bf2142/bf2142.cpp index ad5515e51..b8ef34acf 100644 --- a/plugins/bf2142/bf2142.cpp +++ b/plugins/bf2142/bf2142.cpp @@ -61,7 +61,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa } static int trylock(const std::multimap<std::wstring, unsigned long long int> &pids) { - posptr = faceptr = topptr = NULL; + posptr = faceptr = topptr = 0; if (! initialize(pids, L"BF2142.exe", L"BF2142Audio.dll")) return false; |