From nobody Mon Jan 01 06:15:38 2024 X-Original-To: dev-commits-src-main@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 4T3QhV56CNz5649j; Mon, 1 Jan 2024 06:15:38 +0000 (UTC) (envelope-from git@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 4T3QhV3m9mz3WBl; Mon, 1 Jan 2024 06:15:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704089738; 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; bh=IH1AOLT7mvuN98AdzAWGO2jtmr+n1lyemUJQVVgFvdM=; b=wvTRXVNPk/2Lb4EqjHqm6IJ3aJvgFCvatOF6funRCds6IhuFGnvpIraJdBkJx+TAqakUsR 72tTPaQOCzgKBFggz9lOaD4jn2ATx9EyCz4sHt9lAlZtIE1QlV17uuQgPHvVGhRAteWq01 pHMZZQXVSOnCdrBPILXJzRREWfMXB1wWpdK49dRkcBjtQF/tJ+L1R/e5sOUGoiXIikpu8r cqrF7VoMnsoalu2Wqt2dCpKjOfn5Z0LjEp6FEEw6yPA8B7CN0JT/3SCVxV9ALc5K2Ju/yP YylxvA8jLt+n0AyM2f6L5mTqj5pEtWCAJvtfqizbk6ULrGiF//k6W5+6F++KHQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704089738; a=rsa-sha256; cv=none; b=imQeER5QlnCzGp62BllpIF/fYm2hGcATH29cspQffT0J4ZvcivG8rs7CI/rrM199TcTwi4 ASfkw06WqzndEJ5gUdLTpbVL9NZBOmCxNaUEoVVJZBVwD90GYRY8GEMDPNIGBfwYdIaz9M p4Ds5J3c/vQ7X7TLQnFBgx8CBpwD/LRQFj35lJW+IjHvBGsmxw6y2DrPieY01WZA6bIc6q WAtkxOPpFAH2GA2/AMbFmZ+pMj8SThd6t746qwlpMQ+iab2SshoKAc4Mm6/kvMhtBgv0Cc qdrA/yqmeKIJ4fuZR+DYRzfTYyCJZVWid9rynTZJcX2lcNfVy9x++ARNPE9d6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704089738; 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; bh=IH1AOLT7mvuN98AdzAWGO2jtmr+n1lyemUJQVVgFvdM=; b=S+F6qHgE89LcJFVSE9x2nAvhygxxRX6ZplnGIw3MHcrpZY9E6RjYEnOWVH03aOtE/uX1RZ d3CXqMqwqnT4i1R4oAHEduaXbvlb/nrddRYsfYaf5SnaW66j2+tGCy6E0YdcNqbX6bQVkn OZVSqfJ6lHz4udGfnnjFk8+/luvBPBG9j1PpiUZPZsvU5K2sVK5G7pAERWyCyFS9UopgIP aFELdarzSQuHIOA5JsCuZYWCtojNhIlHZ0q4veQFaKO5gJ+v8KGqSOthyIa4XK+BKPg2Bu dqaCaMV+sI4ZA1K7w67Si6XgELHeLGbNngTmdwsmF7CJ8F4aarrjn58LAJmJPw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4T3QhV2sz1z15pR; Mon, 1 Jan 2024 06:15:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4016Fco7036396; Mon, 1 Jan 2024 06:15:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4016Fcba036393; Mon, 1 Jan 2024 06:15:38 GMT (envelope-from git) Date: Mon, 1 Jan 2024 06:15:38 GMT Message-Id: <202401010615.4016Fcba036393@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 259e6fefc0ad - main - test-includes: Add -ansi to the compile line to catch problems List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 259e6fefc0adc5f253920922653e868ab2cbe373 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=259e6fefc0adc5f253920922653e868ab2cbe373 commit 259e6fefc0adc5f253920922653e868ab2cbe373 Author: Warner Losh AuthorDate: 2024-01-01 06:12:54 +0000 Commit: Warner Losh CommitDate: 2024-01-01 06:14:08 +0000 test-includes: Add -ansi to the compile line to catch problems We support C89 files, but compile everything in the tree with C99 or newer. By compiling these -ansi, that will force C89 which doesn't understand inline. All our header files must use __inline instead of inline when they define inline functions. Sponsored by: Netflix Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43235 --- tools/build/test-includes/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build/test-includes/Makefile b/tools/build/test-includes/Makefile index 174c4341331c..2c25e0fb32ce 100644 --- a/tools/build/test-includes/Makefile +++ b/tools/build/test-includes/Makefile @@ -22,6 +22,10 @@ NO_PIC= yes # Some files have to be clean for extra defines too... CFLAGS.event.c= -D_WANT_KEVENT32 -D_WANT_FREEBSD11_KEVENT +# We currently support C89 and newer compilers. Catch the odd little fussy +# details like __inline that the header files must follow to support C89. +CFLAGS+=-ansi + .include "badfiles.inc" .for h c in ${HDRS:@x@$x ${x:S,/,_,g:R}.c@}