Skip to content
Snippets Groups Projects
Open warning: implicit declaration of function 'conf_file_set_enable_ipv6'
  • View options
  • warning: implicit declaration of function 'conf_file_set_enable_ipv6'

  • View options
  • Open Issue created by milahu

    ideally the build should finish without warnings

    config-file.c: In function 'parse_config_line':
    config-file.c:184:23: warning: implicit declaration of function 'conf_file_set_enable_ipv6' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration8;;]
      184 |                 ret = conf_file_set_enable_ipv6(tokens[1], config);
          |                       ^~~~~~~~~~~~~~~~~~~~~~~~~
    config-file.c: In function 'conf_file_set_socks5_user':
    config-file.c:332:9: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstringop-truncation-Wstringop-truncation8;;]
      332 |         strncpy(config->conf_file.socks5_username, username, strlen(username));
          |         ^
    config-file.c:325:13: note: length computed here
      325 |         if (strlen(username) > sizeof(config->conf_file.socks5_username)) {
          |             ^~~~~~~~~~~~~~~~
    config-file.c: In function 'conf_file_set_socks5_pass':
    config-file.c:364:9: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstringop-truncation-Wstringop-truncation8;;]
      364 |         strncpy(config->conf_file.socks5_password, password, strlen(password));
          |         ^
    config-file.c:357:13: note: length computed here
      357 |         if (strlen(password) > sizeof(config->conf_file.socks5_password)) {
          |             ^~~~~~~~~~~~~~~~

    torsocks-2.4.0-unstable-2022-08-09-build.log

    • Merge request
    • Branch

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading