public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/29264] New: canonicalize.c:424:50: error: ‘dest’ may be used uninitialized in this function
@ 2022-06-20 12:13 schwab@linux-m68k.org
  0 siblings, 0 replies; only message in thread
From: schwab@linux-m68k.org @ 2022-06-20 12:13 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29264

            Bug ID: 29264
           Summary: canonicalize.c:424:50: error: ‘dest’ may be used
                    uninitialized in this function
           Product: glibc
           Version: 2.35
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: schwab@linux-m68k.org
                CC: carlos at redhat dot com
  Target Milestone: ---

With CFLAGS=-Og, build fails like this:

canonicalize.c: In function ‘realpath_stk’:
canonicalize.c:424:50: error: ‘dest’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
  424 |   return scratch_buffer_dupfree (rname_buf, dest - rname);
      |                                             ~~~~~^~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [../o-iterator.mk:9:
/suse/schwab/src/libc/branch/libc-2.35/test-og/stdlib/canonicalize.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/daten/src/libc/branch/libc-2.35/libc/stdlib'
make[1]: *** [Makefile:483: stdlib/subdir_lib] Error 2
make[1]: Leaving directory '/daten/src/libc/branch/libc-2.35/libc'
make: *** [Makefile:9: all] Error 2

This is independent of the gcc version.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-20 12:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 12:13 [Bug build/29264] New: canonicalize.c:424:50: error: ‘dest’ may be used uninitialized in this function schwab@linux-m68k.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).