Commit a33729f
committed
win32.c: don't call wcscpy() with in == out
Since both the input and output parameters are restrict qualified,
this would be invalid, and it is possibe for PerlDir_mapW() to return
its parameter. This warned on gcc:
win32.c: In function 'win32_link':
win32.c:3712:40: warning: passing argument 1 to 'restrict'-qualified parameter aliases with argument 2 [-Wrestrict]
3712 | ((aTHXa(PERL_GET_THX)), wcscpy(wOldName, PerlDir_mapW(wOldName)),
| ^~~~~~~~1 parent 224c53d commit a33729f
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3700 | 3700 | | |
3701 | 3701 | | |
3702 | 3702 | | |
| 3703 | + | |
| 3704 | + | |
| 3705 | + | |
| 3706 | + | |
| 3707 | + | |
| 3708 | + | |
| 3709 | + | |
| 3710 | + | |
| 3711 | + | |
| 3712 | + | |
| 3713 | + | |
3703 | 3714 | | |
3704 | 3715 | | |
3705 | 3716 | | |
| |||
3709 | 3720 | | |
3710 | 3721 | | |
3711 | 3722 | | |
3712 | | - | |
| 3723 | + | |
| 3724 | + | |
3713 | 3725 | | |
3714 | 3726 | | |
3715 | 3727 | | |
| |||
0 commit comments