Am 19.06.10, 19:33 -0500 schrieb Bob Friesenhahn:
> On Sun, 20 Jun 2010, Kai-Uwe Behrmann wrote:
>> constant
>> /opt/local/include/lcms2.h:133:10: warning: use of C99 long long integer
>> constant
>> In file included from
>> /home/kuwe/programme/CMS/Oyranos/Entwickeln/modules/oyranos_cmm_lcm2.c:19:
>> /opt/local/include/lcms2.h:383: warning: comma at end of enumerator list
>> /opt/local/include/lcms2.h:444: warning: comma at end of enumerator list
>> 
>> 
>> Any idea about the long long integer warning?
>
> The 'long long' type has been used by Unix for many years and is likely 
> validated by 'configure'. I would be more concerned about this warning:
>
>  "warning: comma at end of enumerator list"
>
> since it is something which should be rejected by a compiler and there are 
> modern compilers which would fail to compile it.
>
>> To better check I compile with gcc --pedantic and -Wall. As lcms2
>> requires -std=c99 is added. I hope the warnings can be fixed. The
>> LONG_MAX comparision can be possibly substituted with a check for
>> _POSIX_V6_LP64_OFF64 and _POSIX_V6_ILP32_OFF32. If both are not defined
>
> What is wrong with LONG_MAX?

After looking at the ISO standard for C99 it appears lcms2.h is right in 
the comment style and usage of long long types.

As well I figured out that the --std=c99 option did not reach the compile 
line in my code. So sorry for any confusion about the warnings.


kind regards
Kai-Uwe Behrmann
-- 
developing for colour management 
www.behrmann.name + www.oyranos.org


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to