Staging
v0.5.1
https://github.com/python/cpython
Revision dedcbee04cd52790027ecfb46cb3aa33efebdc84 authored by Victor Stinner on 29 November 2017, 23:00:35 UTC, committed by GitHub on 29 November 2017, 23:00:35 UTC
* bpo-30923: Silence fall-through warnings in libexpat build. (#3205)

(cherry picked from commit 9e1e6f528f3fec16b9bd99f5ee38048ffec04a81)

* bpo-31279: Silence -Wstringop-overflow warning. (#3207)

(cherry picked from commit dce6502059f46a04f90938b9d832394c8215397b)
1 parent 06be9da
Raw File
Tip revision: dedcbee04cd52790027ecfb46cb3aa33efebdc84 authored by Victor Stinner on 29 November 2017, 23:00:35 UTC
[3.6] bpo-30923, bpo-31279: Fix GCC warnings (#4620)
Tip revision: dedcbee
invalid_parameter_handler.c
#ifdef _MSC_VER

#include <stdlib.h>

#if _MSC_VER >= 1900
/* pyconfig.h uses this function in the _Py_BEGIN/END_SUPPRESS_IPH
 * macros. It does not need to be defined when building using MSVC
 * earlier than 14.0 (_MSC_VER == 1900).
 */

static void __cdecl _silent_invalid_parameter_handler(
    wchar_t const* expression,
    wchar_t const* function,
    wchar_t const* file,
    unsigned int line,
    uintptr_t pReserved) { }

_invalid_parameter_handler _Py_silent_invalid_parameter_handler = _silent_invalid_parameter_handler;

#endif

#endif
back to top