diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-06 17:20:49 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-01-01 14:34:57 -0800 |
commit | 0da7cf06cea7837f78ee53c310453a32356227b8 (patch) | |
tree | 719b5d1095b6359e79d10ec2c41d8e9530854e1a /imakemdep.h | |
parent | 2bb1bd63e2e766ce281a61cadbffad7a12d5fd18 (diff) | |
download | xorg-util-makedepend-0da7cf06cea7837f78ee53c310453a32356227b8.tar.gz |
Store predefined -D values in const char fields
Clears up 28 -Wdiscarded-qualifiers warnings from gcc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'imakemdep.h')
-rw-r--r-- | imakemdep.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/imakemdep.h b/imakemdep.h index f1b8a8f..75a540f 100644 --- a/imakemdep.h +++ b/imakemdep.h @@ -26,23 +26,26 @@ in this Software without prior written authorization from The Open Group. /* - * This file contains machine-dependent constants for the imake utility. - * When porting imake, read each of the steps below and add in any necessary - * definitions. In general you should *not* edit ccimake.c or imake.c! + * This file contains machine-dependent constants for the makedepend utility. + * When porting makedepend, add in any necessary definitions for selecting + * the right headers to include on your platform. */ +struct predef_symtab { + const char *s_name; + const char *s_value; +}; #if !defined (CROSSCOMPILE) || defined (CROSSCOMPILE_CPP) /* predefs: * If your compiler and/or preprocessor define any specific symbols, add - * them to the the following table. The definition of struct symtab is - * in util/makedepend/def.h. + * them to the the following table. */ #undef DEF_EVALUATE #undef DEF_STRINGIFY #define DEF_EVALUATE(__x) #__x #define DEF_STRINGIFY(_x) DEF_EVALUATE(_x) -static const struct symtab predefs[] = { +static const struct predef_symtab predefs[] = { #ifdef apollo {"apollo", "1"}, #endif |