[New-bugs-announce] [issue45666] Warning: "'swprintf' : format string '%s' requires an argument of type 'unsigned short *', but variadic argument 1 has type 'const char *'"

Nikita Sobolev report at bugs.python.org
Fri Oct 29 05:46:48 EDT 2021


New submission from Nikita Sobolev <mail at sobolevn.me>:

Right now GitHub emmits this warning:

```
GitHub Actions / Windows (x64)

Programs/_testembed.c#L1735

'swprintf' : format string '%s' requires an argument of type 'unsigned short *', but variadic argument 1 has type 'const char *' [D:\a\cpython\cpython\PCbuild\_testembed.vcxproj]

```

Example: https://github.com/python/cpython/pull/29272/files#file-programs-_testembed-c-L1735

Source: https://github.com/python/cpython/blob/7bddd96982072d04bd6314da1ee7f40b7f875f00/Programs/_testembed.c#L1736

I will send a PR with the fix.

----------
components: Library (Lib)
messages: 405296
nosy: sobolevn
priority: normal
severity: normal
status: open
title: Warning: "'swprintf' : format string '%s' requires an argument of type 'unsigned short *', but variadic argument 1 has type 'const char *'"
type: behavior
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45666>
_______________________________________


More information about the New-bugs-announce mailing list