[CM] warnings and errors while compiling with Oracle Solaris Studio 12.4 compiler on SPARC Solaris 10

bil at ccrma.Stanford.EDU bil at ccrma.Stanford.EDU
Mon May 9 04:39:41 PDT 2016

Thanks for info about the Oracle Solaris compiler.

The 1.0fi stuff is how (sqrt -1) used to be handled in Solaris --
its complex number implementation was incomplete, so everyone
had to kludge around it; perhaps it has changed?  If so, I need
some compiler switch to distinguish versions.  See line 322 of s7.c.
You could also use the compilation switch -DHAVE_COMPLEX_NUMBERS=0.

popen and pclose are used in the "system" implementation.
You could omit this via -DWITH_SYSTEM_EXTRAS=0. After
googling around for awhile, I can't find any report
of a problem with them in Solaris.  They should be in stdio.h.

The "warning: statement not reached" cases appear to be correct,
but other compilers are not as smart about this, and complain if
the extra (harmless) return statement is not present.

I think the only real problem here is how to define _Complex_I for
that version of C.

More information about the Cmdist mailing list