From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8F9313858401; Mon, 27 Mar 2023 09:19:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F9313858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679908798; bh=+ZT/gCAFU0COhvZHU9Zc9lUgd2Zzno4zMz/CealrV/s=; h=From:To:Subject:Date:From; b=AqopZS9BeswnFdiK+0J71cBCtI7sA2ywklKSxw7WwmQMCuqtvfh5/lJWwMN8OVX/2 g+VB8n44HuT7e8R2B1196RqRfRYNSA6qjrduic/hMZJokYmAL2+xRrHD3FFjUNyFMs OhlM9ybNTLkS661qPOQ1FYMw5xN5VYO07hXTMomM= From: "jdx at o2 dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/109293] New: Missing memmem() prototype in fixincludes/fixfixes.c on Windows/MinGW-W64 Date: Mon, 27 Mar 2023 09:19:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: jdx at o2 dot pl X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109293 Bug ID: 109293 Summary: Missing memmem() prototype in fixincludes/fixfixes.c on Windows/MinGW-W64 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: jdx at o2 dot pl Target Milestone: --- Host: x86_64-w64-mingw32 Created attachment 54763 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54763&action=3Dedit Proposed patch gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I../../../gcc/fixincludes -I../include -I../../../gcc/fixincludes/../inclu= de ../../../gcc/fixincludes/fixfixes.c ../../../gcc/fixincludes/fixfixes.c: In function 'check_has_inc': ../../../gcc/fixincludes/fixfixes.c:490:12: warning: implicit declaration of function 'memmem'; did you mean 'memset'? [-Wimplicit-function-declaration] 490 | for (p =3D memmem (begin, pos - begin, has_inc, has_inc_len); | ^~~~~~ | memset ../../../gcc/fixincludes/fixfixes.c:490:10: warning: assignment to 'const c= har *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 490 | for (p =3D memmem (begin, pos - begin, has_inc, has_inc_len); | ^ ../../../gcc/fixincludes/fixfixes.c:492:10: warning: assignment to 'const c= har *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 492 | p =3D memmem (p, pos - p, has_inc, has_inc_len)) | ^=