Hi,
Albert Chin <[EMAIL PROTECTED]> writes:
> I tried compiling guile-1.8.0 on HP-UX 11.23/IA-64 with the HP-UX C
> compiler. It compiles fine on HP-UX 11.23/PA-RISC. On IA-64, it fails:
> cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I/opt/TWWfsw/libtool15/include
> -I/opt/TWWfsw/libgmp42/include -D_REENTRANT -mthreads -g -c environments.c
> -DPIC -o .libs/libguile_la-environments.o
> cc: warning 901: unknown option: `-hreads': use +help for online
> documentation.
> "environments.c", line 146: warning #2940-D: missing return statement at end
> of non-void function "scm_environment_ref"
> }
Actually, you don't need `environments.c' (it's currently unused and
undocumented). So one easy way to work around this is to remove
`environments.c' from `Makefile.am', and then re-generate the makefile
(`make Makefile' should do the trick).
When using GCC, these missing return statements are not caught because
`scm_error_environment_unbound ()' and friends are declared with
attribute `noreturn'. As for this:
> "environments.c", line 692: error #2042: operand types are incompatible
> ("void"
> and "SCM")
> : SCM_SET_CORE_ENVIRONMENT_OBSERVERS (env, rest);
> ^
This could be rewritten with an `if' to avoid this problem, if need be.
Thanks,
Ludovic.
_______________________________________________
Guile-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/guile-devel