[argyllcms] Patch: missing includes

  • From: Frederic Crozat <fred@xxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Thu, 23 Sep 2010 14:47:58 +0200

While cleaning argyllcms package on openSUSE, I noticed some warnings
spotted by our package system.

I'm attaching a patch for missing includes.

There is also another warning but I'm not 100% sure how it should be
fixed (probably spotted by gcc 4.5), so I'm just notifying about it :

Program causes undefined operation
   (likely same variable used twiceand post/pre incremented in the
same expression).
   e.g. x = x++; Split it in two operations.
W: argyllcms sequence-point cgats.c:859, 935, 1013, 1078, 1176


-- 
Frederic Crozat
diff -up Argyll_V1.3.0/profile/invprofcheck.c.include 
Argyll_V1.3.0/profile/invprofcheck.c
--- Argyll_V1.3.0/profile/invprofcheck.c.include        2010-09-23 
11:53:35.321430356 +0200
+++ Argyll_V1.3.0/profile/invprofcheck.c        2010-09-23 11:55:07.925405913 
+0200
@@ -31,6 +31,7 @@
 #include <fcntl.h>
 #include <string.h>
 #include <math.h>
+#include <ctype.h>
 #include "copyright.h"
 #include "aconfig.h"
 #include "numlib.h"
diff -up Argyll_V1.3.0/profile/profcheck.c.include 
Argyll_V1.3.0/profile/profcheck.c
--- Argyll_V1.3.0/profile/profcheck.c.include   2010-09-23 11:55:27.832510725 
+0200
+++ Argyll_V1.3.0/profile/profcheck.c   2010-09-23 11:55:57.153440168 +0200
@@ -36,6 +36,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <math.h>
+#include <ctype.h>
 #if defined(__IBMC__)
 #include <float.h>
 #endif
diff -up Argyll_V1.3.0/spectro/spyd2en.c.include Argyll_V1.3.0/spectro/spyd2en.c
--- Argyll_V1.3.0/spectro/spyd2en.c.include     2010-09-23 11:56:13.748433154 
+0200
+++ Argyll_V1.3.0/spectro/spyd2en.c     2010-09-23 11:56:39.717611251 +0200
@@ -31,6 +31,7 @@
 #include <stdarg.h>
 #include <fcntl.h>
 #include <string.h>
+#include <unistd.h>
 #if defined (NT)
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>

Other related posts: