This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix -Wundef for FEATURE_INDEX_1.
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 03 May 2014 00:27:58 -0400
- Subject: Re: [PATCH] Fix -Wundef for FEATURE_INDEX_1.
- Authentication-results: sourceware.org; auth=none
- References: <535F6BDE dot 3050801 at redhat dot com> <20140430175513 dot 3DF042C39DE at topped-with-meat dot com> <5362DA44 dot 3090507 at redhat dot com>
On 05/01/2014 07:35 PM, Carlos O'Donell wrote:
> 2014-05-01 Carlos O'Donell <carlos@redhat.com>
>
> * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0.
> [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
Fixed.
commit 8f1df5cf9d8d30c0747532301dca3cf9c99fbc8e
Author: Carlos O'Donell <carlos@redhat.com>
Date: Sat May 3 00:25:21 2014 -0400
Fix -Wundef warning for FEATURE_INDEX_1.
Define FEATURE_INDEX_1 and FEATURE_INDEX_MAX as macros
for use by both assembly and C code. This fixes the
-Wundef error for cases where FEATURE_INDEX_1 was not
defined but used the correct value of 0 for an undefined
macro.
Cheers,
Carlos.