Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mm2/Little-CMS.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2022-07-02 13:27:03 +0300
committerMarti Maria <marti.maria@littlecms.com>2022-07-02 13:27:03 +0300
commitc3d7f491e2daebda2413fb3d2935c51df1c50ac7 (patch)
tree89198be5ae6c75c7a0a5cbdd877bda0f05cb47d1
parentc05f3f0c8ddab4bd0685cf82a41c30305fa3f662 (diff)
Bump to 2.14, fix strict aliasing warnings
Set autotools version to 2.14 Fix a warning on strict aliasing (likely to be a gcc bug) Fix a c++ compilation error
-rw-r--r--Makefile.am2
-rw-r--r--Makefile.in2
-rwxr-xr-xconfigure22
-rw-r--r--configure.ac4
-rw-r--r--plugins/Makefile10
-rw-r--r--src/cmscgats.c2
-rw-r--r--src/cmsplugin.c9
7 files changed, 28 insertions, 23 deletions
diff --git a/Makefile.am b/Makefile.am
index 5d8222e..2053fcb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,7 +23,7 @@ endif
SUBDIRS = src include utils/tificc utils/transicc utils/linkicc utils/jpgicc utils/psicc testbed $(USER_PLUGINS)
# Additional files to distribute
-EXTRA_DIST = AUTHORS COPYING ChangeLog doc Projects include bin Lib INSTALL README.1ST autogen.sh lcms2.pc.in plugins
+EXTRA_DIST = AUTHORS COPYING ChangeLog doc Projects include bin Lib INSTALL README.1ST autogen.sh lcms2.pc.in plugins
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = lcms2.pc
diff --git a/Makefile.in b/Makefile.in
index e47aed3..9a102fb 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -400,7 +400,7 @@ USER_PLUGINS = $(am__append_1) $(am__append_2)
SUBDIRS = src include utils/tificc utils/transicc utils/linkicc utils/jpgicc utils/psicc testbed $(USER_PLUGINS)
# Additional files to distribute
-EXTRA_DIST = AUTHORS COPYING ChangeLog doc Projects include bin Lib INSTALL README.1ST autogen.sh lcms2.pc.in plugins
+EXTRA_DIST = AUTHORS COPYING ChangeLog doc Projects include bin Lib INSTALL README.1ST autogen.sh lcms2.pc.in plugins
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = lcms2.pc
all: all-recursive
diff --git a/configure b/configure
index 17a7e29..79a7485 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for lcms2 2.13.
+# Generated by GNU Autoconf 2.69 for lcms2 2.14.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -587,8 +587,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='lcms2'
PACKAGE_TARNAME='lcms2'
-PACKAGE_VERSION='2.13'
-PACKAGE_STRING='lcms2 2.13'
+PACKAGE_VERSION='2.14'
+PACKAGE_STRING='lcms2 2.14'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1371,7 +1371,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures lcms2 2.13 to adapt to many kinds of systems.
+\`configure' configures lcms2 2.14 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1442,7 +1442,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of lcms2 2.13:";;
+ short | recursive ) echo "Configuration of lcms2 2.14:";;
esac
cat <<\_ACEOF
@@ -1566,7 +1566,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-lcms2 configure 2.13
+lcms2 configure 2.14
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2052,7 +2052,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by lcms2 $as_me 2.13, which was
+It was created by lcms2 $as_me 2.14, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -2408,7 +2408,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
# Libtool library revision control info
#
LIBRARY_CURRENT=2
-LIBRARY_REVISION=13
+LIBRARY_REVISION=14
LIBRARY_AGE=0
@@ -2995,7 +2995,7 @@ fi
# Define the identity of the package.
PACKAGE='lcms2'
- VERSION='2.13'
+ VERSION='2.14'
# Some tools Automake needs.
@@ -19193,7 +19193,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by lcms2 $as_me 2.13, which was
+This file was extended by lcms2 $as_me 2.14, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -19250,7 +19250,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-lcms2 config.status 2.13
+lcms2 config.status 2.14
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff --git a/configure.ac b/configure.ac
index 07b1dc4..26c2b2d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,7 @@ AC_PREREQ(2.60)
#
# Set the package name and version
#
-AC_INIT(lcms2,2.13)
+AC_INIT(lcms2,2.14)
# Specify directory where m4 macros may be found.
AC_CONFIG_MACRO_DIR([m4])
@@ -16,7 +16,7 @@ AC_CONFIG_MACRO_DIR([m4])
# Libtool library revision control info
#
LIBRARY_CURRENT=2
-LIBRARY_REVISION=13
+LIBRARY_REVISION=14
LIBRARY_AGE=0
AC_SUBST(LIBRARY_CURRENT)dnl
diff --git a/plugins/Makefile b/plugins/Makefile
index 2a143e0..094d2db 100644
--- a/plugins/Makefile
+++ b/plugins/Makefile
@@ -205,7 +205,7 @@ CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O2 -pthread
CYGPATH_W = echo
-DEFS = -DPACKAGE_NAME=\"lcms2\" -DPACKAGE_TARNAME=\"lcms2\" -DPACKAGE_VERSION=\"2.13\" -DPACKAGE_STRING=\"lcms2\ 2.13\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_FUNC_ATTRIBUTE_VISIBILITY=1 -DHAVE_GMTIME_R=1 -DHAVE_PTHREAD=1 -DHasTHREADS=1 -DHasJPEG=1 -DHasZLIB=1 -DHasTIFF=1 -DHAVE_TIFFCONF_H=1
+DEFS = -DPACKAGE_NAME=\"lcms2\" -DPACKAGE_TARNAME=\"lcms2\" -DPACKAGE_VERSION=\"2.14\" -DPACKAGE_STRING=\"lcms2\ 2.14\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_FUNC_ATTRIBUTE_VISIBILITY=1 -DHAVE_GMTIME_R=1 -DHAVE_PTHREAD=1 -DHasTHREADS=1 -DHasJPEG=1 -DHasZLIB=1 -DHasTIFF=1 -DHAVE_TIFFCONF_H=1
DEPDIR = .deps
DLLTOOL = false
DSYMUTIL =
@@ -229,7 +229,7 @@ LDFLAGS =
LIBOBJS =
LIBRARY_AGE = 0
LIBRARY_CURRENT = 2
-LIBRARY_REVISION = 13
+LIBRARY_REVISION = 14
LIBS =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIBTOOL_DEPS = ./ltmain.sh
@@ -256,10 +256,10 @@ OTOOL64 =
PACKAGE = lcms2
PACKAGE_BUGREPORT =
PACKAGE_NAME = lcms2
-PACKAGE_STRING = lcms2 2.13
+PACKAGE_STRING = lcms2 2.14
PACKAGE_TARNAME = lcms2
PACKAGE_URL =
-PACKAGE_VERSION = 2.13
+PACKAGE_VERSION = 2.14
PATH_SEPARATOR = :
PTHREAD_CC = gcc
PTHREAD_CFLAGS = -pthread
@@ -271,7 +271,7 @@ SET_MAKE =
SHELL = /bin/bash
STRIP = strip
TIFFICC_DEPLIBS = -ltiff -ljpeg -lz -lm -lpthread
-VERSION = 2.13
+VERSION = 2.14
abs_builddir = /home/marti/Little-CMS/plugins
abs_srcdir = /home/marti/Little-CMS/plugins
abs_top_builddir = /home/marti/Little-CMS
diff --git a/src/cmscgats.c b/src/cmscgats.c
index e922305..55402bf 100644
--- a/src/cmscgats.c
+++ b/src/cmscgats.c
@@ -390,7 +390,7 @@ void StringAppend(string* s, char c)
char* new_ptr;
s->max *= 10;
- new_ptr = AllocChunk(s->it8, s->max);
+ new_ptr = (char*) AllocChunk(s->it8, s->max);
memcpy(new_ptr, s->begin, s->len);
s->begin = new_ptr;
}
diff --git a/src/cmsplugin.c b/src/cmsplugin.c
index f581719..556fbc2 100644
--- a/src/cmsplugin.c
+++ b/src/cmsplugin.c
@@ -177,8 +177,12 @@ cmsBool CMSEXPORT _cmsReadFloat32Number(cmsIOHANDLER* io, cmsFloat32Number* n)
if (n != NULL) {
+ const cmsFloat32Number* f; // gcc complaing on strict aliasing if this pointer is not used.
+
tmp = _cmsAdjustEndianess32(tmp);
- *n = *(cmsFloat32Number*)(void*)&tmp;
+
+ f = (const cmsFloat32Number*) &tmp;
+ *n = *f;
// Safeguard which covers against absurd values
if (*n > 1E+20 || *n < -1E+20) return FALSE;
@@ -306,10 +310,11 @@ cmsBool CMSEXPORT _cmsWriteUInt32Number(cmsIOHANDLER* io, cmsUInt32Number n)
cmsBool CMSEXPORT _cmsWriteFloat32Number(cmsIOHANDLER* io, cmsFloat32Number n)
{
cmsUInt32Number tmp;
+ const cmsFloat32Number* f = &n;
_cmsAssert(io != NULL);
- tmp = *(cmsUInt32Number*) (void*) &n;
+ tmp = *(cmsUInt32Number*)f;
tmp = _cmsAdjustEndianess32(tmp);
if (io -> Write(io, sizeof(cmsUInt32Number), &tmp) != 1)
return FALSE;