Skip to content

Compiler deprecation warnings #1

@harryyoud

Description

@harryyoud

TODO:`

  • Warning C4473 'sscanf_s' : not enough arguments passed for format string libjpeg libjpeg\jmemmgr.c 1110
  • Warning C4996 'GetVersionExA': was declared deprecated miniWinVNC miniWinVNC\vncservice.cpp 160
  • Warning C4996 'GetVersionExA': was declared deprecated miniWinVNC miniWinVNC\winvnc.cpp 2374
  • Warning C4996 'GetVersionExA': was declared deprecated miniWinVNC miniWinVNC\winvnc.cpp 2446
  • Warning C4996 'GetVersionExA': was declared deprecated miniWinVNC miniWinVNC\winvnc.cpp 2513

Fixed in aad7cac:

  • Warning C4996 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. miniWinVNC miniWinVNC\winvnc.cpp 818

Fixed in 404354c:`

  • Warning C4996 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings miniWinVNC miniWinVNC\vncclient.cpp 971
  • Warning C4996 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings miniWinVNC miniWinVNC\vsocket.cpp 306
  • Warning C4996 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings miniWinVNC miniWinVNC\vsocket.cpp 313
  • Warning C4996 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings miniWinVNC miniWinVNC\vsocket.cpp 400
  • Warning C4996 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings miniWinVNC miniWinVNC\vsocket.cpp 421
  • Warning C4996 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings miniWinVNC miniWinVNC\vsocket.cpp 436
  • Warning C4996 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings miniWinVNC miniWinVNC\vsocket.cpp 443

Fixed in 27c4a68:`

  • Warning C4996 'GetVersionExA': was declared deprecated miniWinVNC miniWinVNC\ElevatePrivilege.cpp 35
  • Warning C4996 'GetVersionExA': was declared deprecated AskParameter InstantVNC\CommonBase.cpp 511
  • Warning C4996 'GetVersionExA': was declared deprecated miniWinVNC miniWinVNC\vncOSVersion.cpp 34
  • Warning C4996 'GetVersionExA': was declared deprecated miniWinVNC miniWinVNC\vncdesktop.cpp 636
  • Warning C4996 'GetVersionExA': was declared deprecated miniWinVNC miniWinVNC\vncmenu.cpp 195
  • Warning C4996 'GetVersionExA': was declared deprecated miniWinVNC miniWinVNC\vncmenu.cpp 321

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions