Unicode problem

I wrote a simple code that calls unicode function as you can see below. but
the qcc complier complained of argument type is wrong.

#include <stdio.h>
#include <wchar.h>

int main(void)
wchar_t str[50];
swprintf(str, 50, L"test:%d\n", 1234);

wcscpy(str, L"test");


return 0;

E:/QNX_Working/ucode/main.c: In function main': E:/QNX_Working/ucode/main.c:7: warning: passing arg 3 of swprintf’ from
incompatible pointer type
E:/QNX_Working/ucode/main.c:9: warning: passing arg 2 of `wcscpy’ from
incompatible pointer type

I’ve tried this code in solaris. and It does work correctly. what am I