From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.10944.1683704050020392793 for ; Wed, 10 May 2023 00:34:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LICduP7a; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683704049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YwaR3/VU5RJ1ldAvdl8zQEi2arxqGAbE+0WkXcgrlTQ=; b=LICduP7aIqbTO19Oj+1VZNOKYU3ZI0FFUM0/kixqWygvHyhwnxqBliyUgxwEjOjahyu7Vq q8KGBzRUjc60+ncWikJiIqJFpcKZ/nkRo6CTtUS0KSDvPdQQJJnAMCevS7KTHa/gTfBqq9 9ZrzvZ9++ZiQ9OM8dZTjd//J1gBKYl8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-153-_yA6v8AvMUG2cEKz44rxdQ-1; Wed, 10 May 2023 03:34:05 -0400 X-MC-Unique: _yA6v8AvMUG2cEKz44rxdQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7F80A38149AA; Wed, 10 May 2023 07:34:05 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.90]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 29F99C15BA0; Wed, 10 May 2023 07:34:05 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id EB44B18003AB; Wed, 10 May 2023 09:33:58 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Pawel Polawski , Gerd Hoffmann , Ard Biesheuvel , Jordan Justen , Oliver Steffen , Jiewen Yao , Rebecca Cran Subject: [PATCH 1/1] OvmfPkg/VirtioSerialDxe: fix RELEASE build error Date: Wed, 10 May 2023 09:33:58 +0200 Message-Id: <20230510073358.79042-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true EventNames is used to pretty-print debug log messages. Add #ifdef to only include it in debug builds. Fixes a clang build failure. Reported-by: Rebecca Cran Signed-off-by: Gerd Hoffmann --- OvmfPkg/VirtioSerialDxe/VirtioSerial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OvmfPkg/VirtioSerialDxe/VirtioSerial.c b/OvmfPkg/VirtioSerialDxe/VirtioSerial.c index bfb2b324eadf..5fb4ce31914b 100644 --- a/OvmfPkg/VirtioSerialDxe/VirtioSerial.c +++ b/OvmfPkg/VirtioSerialDxe/VirtioSerial.c @@ -25,6 +25,7 @@ STATIC LIST_ENTRY mVirtioSerialList; +#if !defined (MDEPKG_NDEBUG) STATIC CONST CHAR8 *EventNames[] = { [VIRTIO_SERIAL_DEVICE_READY] = "device-ready", [VIRTIO_SERIAL_DEVICE_ADD] = "device-add", @@ -35,6 +36,7 @@ STATIC CONST CHAR8 *EventNames[] = { [VIRTIO_SERIAL_PORT_OPEN] = "port-open", [VIRTIO_SERIAL_PORT_NAME] = "port-name", }; +#endif VOID EFIAPI -- 2.40.1