[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 7580489: Library (fits.h): initialized variabl

From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 7580489: Library (fits.h): initialized variable for compiler warning
Date: Wed, 3 Feb 2021 12:38:10 -0500 (EST)

branch: master
commit 758048934c650252ff277a77639cfcc738b95821
Author: Mohammad Akhlaghi <>
Commit: Mohammad Akhlaghi <>

    Library (fits.h): initialized variable for compiler warning
    I noticed this compiler warning on a recent compilation. It will never
    cause a problem, because the function exists before using it if there is a
    problem. But it is initialized anyway to avoid compiler warnings and have a
    clean build.
 lib/fits.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/fits.c b/lib/fits.c
index b93dc17..ba3b5c3 100644
--- a/lib/fits.c
+++ b/lib/fits.c
@@ -1758,9 +1758,9 @@ gal_fits_key_write_filename(char *keynamebase, char 
 static void
 fits_bug_wrapper_cdelt_zero(fitsfile *fptr, struct wcsprm *wcs, char *keystr)
-  size_t dim;
   char *keyname;
   double keyvalue;
+  size_t dim=GAL_BLANK_SIZE_T;
   int status=0, datatype=TDOUBLE;
   /* Only do this check when we have more than two dimensions. */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]