code-saturne / code_saturne

code_saturne public mirror
https://www.code-saturne.org
GNU General Public License v2.0
218 stars 81 forks source link

Compilation error of 6.2.0 with clang version 10.0.1 #63

Closed thierry-FreeBSD closed 3 years ago

thierry-FreeBSD commented 3 years ago

Compilation aborts with the following message:

/bin/sh ../../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I../..  -I../../src/alge -I../../src/bft -I../../src/fvm -I../../src/base -I../../src/mesh -I../../src/turb -I../../libple/src -I../../libple   -DMPICH_SKIP_MPICXX -I/usr/local/include -I/usr/local/include/libxml2 -DLIBICONV_PLUG -DNDEBUG   -O2 -funsigned-char -Wall -Wshadow -Wpointer-arith -Wmissing-prototypes -Wuninitialized -Wunused -O2 -pipe  -D__XSI_VISIBLE -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing  -fopenmp=libomp -MT libcscdo_extension_la-cs_cdofb_predco.lo -MD -MP -MF .deps/libcscdo_extension_la-cs_cdofb_predco.Tpo -c -o libcscdo_extension_la-cs_cdofb_predco.lo `test -f 'cs_cdofb_predco.c' || echo './'`cs_cdofb_predco.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/alge -I../../src/bft -I../../src/fvm -I../../src/base -I../../src/mesh -I../../src/turb -I../../libple/src -I../../libple -DMPICH_SKIP_MPICXX -I/usr/local/include -I/usr/local/include/libxml2 -DLIBICONV_PLUG -DNDEBUG -O2 -funsigned-char -Wall -Wshadow -Wpointer-arith -Wmissing-prototypes -Wuninitialized -Wunused -O2 -pipe -D__XSI_VISIBLE -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -fopenmp=libomp -MT libcscdo_extension_la-cs_cdofb_predco.lo -MD -MP -MF .deps/libcscdo_extension_la-cs_cdofb_predco.Tpo -c cs_cdofb_predco.c  -fPIC -DPIC -o .libs/libcscdo_extension_la-cs_cdofb_predco.o
mv -f .deps/libcscdo_extension_la-cs_cdofb_predco.Tpo .deps/libcscdo_extension_la-cs_cdofb_predco.Plo
/bin/sh ../../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I../..  -I../../src/alge -I../../src/bft -I../../src/fvm -I../../src/base -I../../src/mesh -I../../src/turb -I../../libple/src -I../../libple   -DMPICH_SKIP_MPICXX -I/usr/local/include -I/usr/local/include/libxml2 -DLIBICONV_PLUG -DNDEBUG   -O2 -funsigned-char -Wall -Wshadow -Wpointer-arith -Wmissing-prototypes -Wuninitialized -Wunused -O2 -pipe  -D__XSI_VISIBLE -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing  -fopenmp=libomp -MT libcscdo_extension_la-cs_equation_param.lo -MD -MP -MF .deps/libcscdo_extension_la-cs_equation_param.Tpo -c -o libcscdo_extension_la-cs_equation_param.lo `test -f 'cs_equation_param.c' || echo './'`cs_equation_param.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/alge -I../../src/bft -I../../src/fvm -I../../src/base -I../../src/mesh -I../../src/turb -I../../libple/src -I../../libple -DMPICH_SKIP_MPICXX -I/usr/local/include -I/usr/local/include/libxml2 -DLIBICONV_PLUG -DNDEBUG -O2 -funsigned-char -Wall -Wshadow -Wpointer-arith -Wmissing-prototypes -Wuninitialized -Wunused -O2 -pipe -D__XSI_VISIBLE -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -fopenmp=libomp -MT libcscdo_extension_la-cs_equation_param.lo -MD -MP -MF .deps/libcscdo_extension_la-cs_equation_param.Tpo -c cs_equation_param.c  -fPIC -DPIC -o .libs/libcscdo_extension_la-cs_equation_param.o
cs_equation_param.c:2184:5: error: void function 'cs_equation_param_clear' should not return a value [-Wreturn-type]
    return NULL;
    ^      ~~~~
1 error generated.
gmake[4]: *** [Makefile:970 : libcscdo_extension_la-cs_equation_param.lo] Erreur 1
gmake[4] : on quitte le répertoire « /usr/ports/science/code_saturne/work/code_saturne-6.2.0/src/cdo »
gmake[3]: *** [Makefile:904 : all-recursive] Erreur 1
JeromeBonelle commented 3 years ago

Thank you Thierry for your message. The commit 15b565f12ffe323 should fix this issue.