Bjørn Lie
78fbdb4202
dia-0.97.3-get_data_size.patch, dia-0.97.3-const-ft_vector.patch, dia-0.97.3-g_test_add_data_func_1.patch and dia-0.97.3-g_test_add_data_func_2.patch to address C99 compliance issues (mainly use of incompatible pointer types) that are errors by default with GCC 14 [boo#1224536]. All of these patches were taken from the Fedora dia package. Please (assuming the request is OK) forward to Factory soon-ish too so that we can switch the default compiler. Thanks. OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/dia?expand=0&rev=56
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
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.
|
|
|
|
diff --git a/configure b/configure
|
|
index 14cdc757c3ee0f15..504ae93d8e3a4f48 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -17571,7 +17571,7 @@ $as_echo_n "checking for png_structp in png.h... " >&6; }
|
|
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; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
png_ok=yes
|
|
diff --git a/configure.in b/configure.in
|
|
index c5edeeddf766d5fb..f90ed4ef953af139 100644
|
|
--- 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}"
|