https://bugzilla.mindrot.org/show_bug.cgi?id=3928

            Bug ID: 3928
           Summary: assignment discards 'const' qualifier from pointer
                    target type [-Wdiscarded-qualifiers]
           Product: Portable OpenSSH
           Version: 10.2p1
          Hardware: 68k
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Build system
          Assignee: [email protected]
          Reporter: [email protected]

Build warnings with C23 and glibc-2.43

../../openbsd-compat/base64.c: In function '__b64_pton':
../../openbsd-compat/base64.c:212:21: warning: assignment discards
'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  212 |                 pos = strchr(Base64, ch);
      |                     ^
../hostfile.c: In function 'extract_salt':
../hostfile.c:85:16: warning: assignment discards 'const' qualifier
from pointer target type [-Wdiscarded-qualifiers]
   85 |         if ((p = memchr(s, HASH_DELIM, l)) == NULL) {
      |                ^
../hostfile.c: In function 'hostfile_create_user_ssh_dir':
../hostfile.c:510:16: warning: assignment discards 'const' qualifier
from pointer target type [-Wdiscarded-qualifiers]
  510 |         if ((p = strrchr(filename, '/')) == NULL)
      |                ^
../match.c: In function 'match_user':
../match.c:244:24: warning: assignment discards 'const' qualifier from
pointer target type [-Wdiscarded-qualifiers]
  244 |                 if ((p = strrchr(pattern, '@')) != NULL &&
      |                        ^
../misc.c: In function 'vdollar_percent_expand':
../misc.c:1344:37: warning: assignment discards 'const' qualifier from
pointer target type [-Wdiscarded-qualifiers]
 1344 |                         if ((varend = strchr(string, '}')) ==
NULL) {
      |                                     ^
../../openbsd-compat/getopt_long.c: In function 'getopt_internal':
../../openbsd-compat/getopt_long.c:441:18: warning: assignment discards
'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  441 |             (oli = strchr(options, optchar)) == NULL) {
      |                  ^
../clientloop.c: In function 'hostspec_is_complex':
../clientloop.c:2097:17: warning: assignment discards 'const' qualifier
from pointer target type [-Wdiscarded-qualifiers]
 2097 |         if ((cp = strchr(hosts, ',')) == NULL)
      |                 ^
../mux.c: In function 'env_permitted':
../mux.c:238:17: warning: assignment discards 'const' qualifier from
pointer target type [-Wdiscarded-qualifiers]
  238 |         if ((cp = strchr(env, '=')) == NULL || cp == env)
      |                 ^
../readconf.c: In function 'parse_jump':
../readconf.c:3456:33: warning: assignment discards 'const' qualifier
from pointer target type [-Wdiscarded-qualifiers]
 3456 |                         if ((cp = strrchr(s, ',')) != NULL &&
cp != s) {
      |                                 ^

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to