summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-astronomy/wcstools/files/wcstools-3.9.2-compiler_warnings.patch')
-rw-r--r--sci-astronomy/wcstools/files/wcstools-3.9.2-compiler_warnings.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-compiler_warnings.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-compiler_warnings.patch
new file mode 100644
index 0000000..57bb8cb
--- /dev/null
+++ b/sci-astronomy/wcstools/files/wcstools-3.9.2-compiler_warnings.patch
@@ -0,0 +1,13 @@
+Author: Ole Streicher <debian@liska.ath.cx>
+Description: Fix some compiler warnings.
+--- a/imcat.c
++++ b/imcat.c
+@@ -1778,7 +1778,7 @@
+ if (refcat == UCAC2 || refcat == UCAC3 || refcat == UCAC4) {
+ nim = gc[i] / 1000;
+ nct = gc[i] % 1000;
+- sprintf (temp, " ni nc", nim, nct);
++ sprintf (temp, " ni%i nc%i", nim, nct);
+ strcat (headline, temp);
+ }
+ else if (gcset)