From patchwork Wed Jul 10 16:03:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Lichtenheld X-Patchwork-Id: 3764 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:518c:b0:59e:d24b:d55c with SMTP id g12csp437574mae; Wed, 10 Jul 2024 09:03:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXVRre5V+Z8v/s2EvDIHmz8G3WVmLnPIP5hiyHBEMFuCzK1gJX3rK7gtumV6BTembxfjnFOuUHN2wzBGiuqv16xdo9dfpA= X-Google-Smtp-Source: AGHT+IHfoc0HFA4pHn/k/QMcjBQa9XuW1ogBc6WNV44jE3h1tFA9+ti/AsZGu1WsbFvLlQlJpTgr X-Received: by 2002:a05:6a21:9993:b0:1c3:b0d8:dfca with SMTP id adf61e73a8af0-1c3b0d8dff3mr459478637.3.1720627425230; Wed, 10 Jul 2024 09:03:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720627425; cv=none; d=google.com; s=arc-20160816; b=cXWvObsXRLO6UHg9s5FbL7nryQV4rdT4sPXObEDzeEZphvisQjQkLe2MuWYkoq2MjN vdlZ4Rv16eyBxDcj3OALiX4ibiSRy8uAGzKfW3JwJd8u8ePyOiPE7s0DpX7vzFbknyzR sxvnSnZ3zKR0cWyNbwucM8Gt1kwsNu29qiQJCyBwCznw/IFmLnNzl1qJBHAILyWdA7tS heM/9cS9mxmwx85KDqQax4w1FqM2+6Qw+YEUYsx//ZKPtspjq6xv4OEI1DDqEwgDaKdo o1iPGLQgcX95oMjnJqFIbz49O0atIxdYNoSWqZoRxSqXgpaRlRcqaZ11gRkzBYf+KtEF qhpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:content-transfer-encoding:cc:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature:dkim-signature; bh=s0BIBE/l26e9+Uc4mdlEAP2acf4Kff627SUzj6zJI60=; fh=CfxSpwd5kfiMJoL3kcov7PTxVKT7pGe/79idnx9XlBs=; b=KwuEHnZHhTe7KVEMcpHpUAdnhyzp7zFCm1reQ3mj5vSQqC4PHABSye6IqlqK4tumTq 6aG0cFvlL95rPEtctrbvzh3b1m3nGuc5UO7KPul2UNe+VuBnG11Wjp/LwQSdGn8bffaj jh6K6RmKp8Tyq5McIjCDfll6eQTj5GH2XylZ2D6mtpJq57BTd69iJ9n5fQpJjpTPY8b5 O38r0Y1hpZcBPlxvKsy7BmD39ixOQudbIPBNrgskHTMJxEsR/mtpZbPxKFR8YJRxWPxJ tcgMLl6vRdRXIbkCDmpmIQGVhSWPdInhmBYxmq3hf71qH8DXVm9/JNF8H8VW4o1wqQvA r27Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=aARaAzRP; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=JefHyHdw; dkim=neutral (body hash did not verify) header.i=@lichtenheld.com header.s=MBO0001 header.b=oYBsueZn; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id d2e1a72fcca58-70b438dc15dsi4288046b3a.264.2024.07.10.09.03.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jul 2024 09:03:45 -0700 (PDT) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=aARaAzRP; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=JefHyHdw; dkim=neutral (body hash did not verify) header.i=@lichtenheld.com header.s=MBO0001 header.b=oYBsueZn; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1sRZmq-0007cz-Es; Wed, 10 Jul 2024 16:03:19 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sRZmo-0007co-00 for openvpn-devel@lists.sourceforge.net; Wed, 10 Jul 2024 16:03:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rwMJRb74WFTQDYEHmTT3RGrYetbqWgJqQsE5yIIS1do=; b=aARaAzRPgm4f7dwPSVCQkR3qq+ UPFutJlPqbfmBE+uaqM2F/FTsKHGivw5TSvsOHe2tPJU/w9CZ0MExvi+fH0KuEGJKGNTL433fc7xu 1dv8SmCyoqoa+bafZL7lI6HrYp3nsbK0BCz58G3M0n3dLK4Xo/N52s0vJKP3Ikp+qJ54=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=rwMJRb74WFTQDYEHmTT3RGrYetbqWgJqQsE5yIIS1do=; b=JefHyHdw7fP6i00QF6ndjva94h xRQ48wEaORp93ux9fO6yfP6BPRclAU7OGFlpKVOVXPvyu0bnGtA2JUzJ2Pt7L9AViUOLIS8CIEMp6 gVYmRcZq5BG6erxtAyniHr9vHdu5tXywpfIKL8U5mWzypBZHWJc5IPezZZj36fYTRB88=; Received: from mout-p-202.mailbox.org ([80.241.56.172]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1sRZmn-0001gE-3d for openvpn-devel@lists.sourceforge.net; Wed, 10 Jul 2024 16:03:17 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4WK2hC6mrvz9sr6; Wed, 10 Jul 2024 18:03:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lichtenheld.com; s=MBO0001; t=1720627388; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rwMJRb74WFTQDYEHmTT3RGrYetbqWgJqQsE5yIIS1do=; b=oYBsueZn8KLdcIcr85B9r3cNaTpQtDhtaOIHr20PU+I5zXbR18VtnWAEvPS2GH6YZQu2ri fawGzeGO46UISwonIqStICtavW3zvwCbxVpIeuMJDCUAmZKAuSsQ797brKPhG+GLl/DGAq ddJOu7KS8v8vCGhmwhCHrCwDQWnL1FJnuuA+r2SJQVpxr+vuOY8tPBPJo/zhHvjImSacK/ w4ZFrrqtXCvqWFD06nlrdMygJ9TTfa4BA98S/Xn/3Xh3wTcrJkR3yqkSwH9KKfalzAZnBm n51+RFn0mFUPA5YU4qcXXuk/cTi9VLsTIWUCgTh0h+Mml5U+Fd+dKsyr7ViqCQ== From: Frank Lichtenheld To: openvpn-devel@lists.sourceforge.net Date: Wed, 10 Jul 2024 18:03:06 +0200 Message-Id: <20240710160306.190351-1-frank@lichtenheld.com> In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: -5.2 (-----) X-Spam-Report: Spam detection software, running on the system "util-spamd-2.v13.lw.sourceforge.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Mostly so we can use anonymous structs without jumping through hoops or relying on unofficial support. Change-Id: I72934e747d1ad68a7e3675afbeb1b63df7941186 Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe --- Content analysis details: (-5.2 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: configure.ac] -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [80.241.56.172 listed in list.dnswl.org] 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [80.241.56.172 listed in sa-accredit.habeas.com] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [80.241.56.172 listed in bl.score.senderscore.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-Headers-End: 1sRZmn-0001gE-3d Subject: [Openvpn-devel] [PATCH v2] configure: Switch to C11 by default X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arne Schwabe Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: =?utf-8?q?1804208622788507504?= X-GMAIL-MSGID: =?utf-8?q?1804208622788507504?= Mostly so we can use anonymous structs without jumping through hoops or relying on unofficial support. Change-Id: I72934e747d1ad68a7e3675afbeb1b63df7941186 Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/673 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Arne Schwabe diff --git a/CMakeLists.txt b/CMakeLists.txt index 096837d..ad620fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,7 +119,7 @@ set(OPENVPN_VERSION_PATCH ${PRODUCT_VERSION_PATCH}) set(OPENVPN_VERSION_RESOURCE ${PRODUCT_VERSION_RESOURCE}) -set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD 11) # Set the various defines for config.h.cmake.in if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") diff --git a/configure.ac b/configure.ac index 1f03f90..dcc46e2 100644 --- a/configure.ac +++ b/configure.ac @@ -421,10 +421,10 @@ AC_CHECK_PROGS([RST2HTML], [rst2html rst2html.py]) AM_CONDITIONAL([HAVE_PYDOCUTILS], [test "${RST2MAN}" -a "${RST2HTML}"]) -# Set -std=c99 unless user already specified a -std= +# Set -std=c11 unless user already specified a -std= case "${CFLAGS}" in *-std=*) ;; - *) CFLAGS="${CFLAGS} -std=c99" ;; + *) CFLAGS="${CFLAGS} -std=c11" ;; esac #