diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-03 08:59:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-03 08:59:05 +0000 |
commit | e6ba529df30e3fc9dfdf55ec5797f2f764df6e54 (patch) | |
tree | 6b38c918c796f792ef4b18b57437c05a1fd46ae8 /app-office/dia/files | |
parent | fbe7acf59ebf6dc3f04a6ef108ff3887fa5d7972 (diff) |
gentoo auto-resync : 03:12:2022 - 08:59:05
Diffstat (limited to 'app-office/dia/files')
-rw-r--r-- | app-office/dia/files/dia-0.97.3-configure-clang16.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app-office/dia/files/dia-0.97.3-configure-clang16.patch b/app-office/dia/files/dia-0.97.3-configure-clang16.patch new file mode 100644 index 000000000000..75b6f003ca3f --- /dev/null +++ b/app-office/dia/files/dia-0.97.3-configure-clang16.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/874729 +https://src.fedoraproject.org/rpms/dia/blob/0a14169fc36b959598074065678e0126830317f8/f/dia-configure-c99.patch + +C99 removes support for implicit ints, so declare the return type +of main explicitly. Future compilers are likely to require explicit +type declarations. + +Upstream has switched to Meson, and it does not seem to use this +particular check anymore. + +--- a/configure.in ++++ b/configure.in +@@ -197,7 +197,7 @@ if test "$png_ok" = yes; then + png_structp pp; + png_infop info; + png_colorp cmap; +- main() { void*foo = png_create_read_struct; }], ++ int main(void) { void*foo = png_create_read_struct; }], + png_ok=yes, + png_ok=no) + LDFLAGS="${old_LDFLAGS}" + |