* libmuguile: small compile fixes for new gcc (and guile stable-2.0)

This commit is contained in:
Dirk-Jan C. Binnema
2011-09-19 08:21:50 +03:00
parent b25e5be7a9
commit 2d52e671cc
2 changed files with 55 additions and 56 deletions

View File

@ -24,9 +24,8 @@ INCLUDES=-I. -I${top_builddir} -I${top_srcdir}/src -I${top_srcdir}/libmuguile ${
# don't use -Werror, as it might break on other compilers # don't use -Werror, as it might break on other compilers
# use -Wno-unused-parameters, because some callbacks may not # use -Wno-unused-parameters, because some callbacks may not
# really need all the params they get # really need all the params they get
AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter -Wdeclaration-after-statement AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter -Wdeclaration-after-statement -Wno-missing-braces \
AM_CXXFLAGS=-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
noinst_LTLIBRARIES= \ noinst_LTLIBRARIES= \
libmuguile.la libmuguile.la

View File

@ -35,7 +35,7 @@ static long MSG_TAG;
static int static int
mu_guile_scm_is_msg (SCM scm) mu_guile_scm_is_msg (SCM scm)
{ {
return SCM_NIMP(scm) && (long) SCM_CAR (scm) == MSG_TAG; return SCM_NIMP(scm) && (long)SCM_CAR(scm) == MSG_TAG;
} }
@ -476,7 +476,7 @@ msg_mark (SCM msg_smob)
return SCM_UNSPECIFIED; return SCM_UNSPECIFIED;
} }
static scm_sizet static size_t
msg_free (SCM msg_smob) msg_free (SCM msg_smob)
{ {
MuMsgWrapper *msgwrap; MuMsgWrapper *msgwrap;