From nobody Wed Aug 31 22:33:31 2022 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MHzV40V0Sz4bWg0 for ; Wed, 31 Aug 2022 22:33:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MHzV35phJz3ldT for ; Wed, 31 Aug 2022 22:33:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MHzV34sprzH3c for ; Wed, 31 Aug 2022 22:33:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 27VMXV5l042645 for ; Wed, 31 Aug 2022 22:33:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27VMXVIK042644 for toolchain@FreeBSD.org; Wed, 31 Aug 2022 22:33:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 266146] Clang prints bogus warning: incompatible pointer types passing 'struct kinfo_proc *' to parameter of type 'struct kinfo_proc *' [-Wincompatible-pointer-types] Date: Wed, 31 Aug 2022 22:33:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: brooks@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661985211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qPatIaoWa00H1cFNwbBJDTVJ35DijLJHchDCQRlXa7w=; b=wACTRG347yQK/jUvBbMUB3yStMx9MclZrk++YaXt2alE+X61uGbC89A8S5lKQpMJHdL3cs snUZN+U75ked6Sr/UbpwY5IuXJs/LwvVr6tFJRz7CoXzAi2FtcTpoCObqGf/hpwRJd5fJk rnNQ8Zm3MihI1MYaSNrqT40QH5cZ1zO4pr5r8rQ0DvFexyktJdqXeW3JTmy+K5+A5iint3 U9XADbPpZFuuO5BlEfOMyZvAAQIZoZVtFSz6siIti4zXV0bqASn1qoD9dUwnn/XKlXp1yi nOdA2phJkydLXU0K1qyrZh8Qg9zijfJl1dUEmy2dqKG/j6jiMIpoGTVPYaL3BA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661985211; a=rsa-sha256; cv=none; b=OS3eKfYh6tWDsrq2L1iPRn2lHo0K8kKbk/PkBTy2nzpVm6qbPW64wxZWk1dTnlqPetusas PjU3u6gD4XPKE7LtbaxPUYBg1MH0apG/TZnVivGpwzj0p4/A2VTzBmMYO8NwZp6O2J2uDF KWRCT20GrXX5mYKE8u9t65S8qyGN5bSCRQhj4Ig8p84wG8dQD54Uvse+tl70/RGtWfFbsp 4+NO+S+jyCxziKsGSfd4i7NzM4wY5AmbB5IBDqa45P4YHF/rJFXjml9QEHYx4uoG7PZY3t Fp31ULqvX0ihFf3SymkLaESEZ+F1f4GQy/WvPY2/PtuT36k3gmKBZynbuUyQfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266146 Brooks Davis changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |brooks@FreeBSD.org --- Comment #1 from Brooks Davis --- The warning is weird, but in the current state of things sys/user.h needs t= o be included before libprocstat.h for struct kinfo_proc to be declared before things that use it are declared. I think the issue is that the implicit declaration shadows the real one and conflicts. I've fixed this in https://cgit.freebsd.org/src/commit/?id=3Da28f83353243e2298b5f89c0dd6705dfc= bda77ea and have checked locally that it eliminates that warning. --=20 You are receiving this mail because: You are the assignee for the bug.=