From 906fef84496cffce79ccbd6a75ccd961d5abe9b0 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 8 Sep 2017 20:09:12 -0500 Subject: [PATCH] libpkgconf: fragment: mark some inline match tables as const --- libpkgconf/fragment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libpkgconf/fragment.c b/libpkgconf/fragment.c index 9a4bc31..f2fd419 100644 --- a/libpkgconf/fragment.c +++ b/libpkgconf/fragment.c @@ -34,7 +34,7 @@ struct pkgconf_fragment_check { static inline bool pkgconf_fragment_is_unmergeable(const char *string) { - static struct pkgconf_fragment_check check_fragments[] = { + static const struct pkgconf_fragment_check check_fragments[] = { {"-framework", 10}, {"-isystem", 8}, {"-idirafter", 10}, @@ -70,7 +70,7 @@ pkgconf_fragment_is_unmergeable(const char *string) static inline bool pkgconf_fragment_should_munge(const char *string, const char *sysroot_dir) { - static struct pkgconf_fragment_check check_fragments[] = { + static const struct pkgconf_fragment_check check_fragments[] = { {"-isystem", 8}, {"-idirafter", 10}, {"-include", 8},