public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/106906] New: libgomp/env.c: 3 * boolean value assigned to pointer
@ 2022-09-12 11:01 dcb314 at hotmail dot com
  2022-09-12 11:33 ` [Bug libgomp/106906] " jakub at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2022-09-12 11:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106906

            Bug ID: 106906
           Summary: libgomp/env.c: 3 * boolean value assigned to pointer
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

Static analyser cppcheck says:

libgomp/env.c:1895:19: error: Boolean value assigned to pointer.
[assignBoolToPointer]
libgomp/env.c:1902:19: error: Boolean value assigned to pointer.
[assignBoolToPointer]
libgomp/env.c:1910:19: error: Boolean value assigned to pointer.
[assignBoolToPointer]

First one is 

      icv_addr[1] = false;

but

             void *icv_addr[3])

so this could probably benefit from a tidyup.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-13 17:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-12 11:01 [Bug libgomp/106906] New: libgomp/env.c: 3 * boolean value assigned to pointer dcb314 at hotmail dot com
2022-09-12 11:33 ` [Bug libgomp/106906] " jakub at gcc dot gnu.org
2022-09-13 17:04 ` cvs-commit at gcc dot gnu.org
2022-09-13 17:06 ` jakub at gcc dot gnu.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).