lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Don't use __attribute__ ((pure)) for unsmob


From: Matthias Kilian
Subject: Don't use __attribute__ ((pure)) for unsmob
Date: Sun, 13 Dec 2009 21:16:13 +0100
User-agent: Mutt/1.4.2.3i

This one makes lilypond build with good old gcc-3.3.5 (which is the
default compiler on OpenBSD). It's probably debatable wether it'll
slow down lilypond runtime and accelerate global warming, so if you
don't like it, let me know; I could also add some #ifdefs (or just
keep the patch file in the OpenBSD port).

Ciao,
        Kili

diff --git a/configure.in b/configure.in
index 6253b66..c1cd146 100644
--- a/configure.in
+++ b/configure.in
@@ -90,10 +90,10 @@ AC_MSG_RESULT($NCSB_SOURCE_FILES)
 
 
 STEPMAKE_PYTHON(REQUIRED, 2.4)
-STEPMAKE_GCC(REQUIRED, 3.4)
+STEPMAKE_GCC(REQUIRED, 3.3.5)
 
 STEPMAKE_CXX(REQUIRED)
-STEPMAKE_GXX(REQUIRED, 3.4)
+STEPMAKE_GXX(REQUIRED, 3.3.5)
 STEPMAKE_CXXTEMPLATE
 STEPMAKE_STL_DATA_METHOD
 STEPMAKE_LIB(REQUIRED)
diff --git a/lily/include/smobs.hh b/lily/include/smobs.hh
index 27f9ff4..8b8e4c3 100644
--- a/lily/include/smobs.hh
+++ b/lily/include/smobs.hh
@@ -114,7 +114,7 @@
   static int print_smob (SCM s, SCM p, scm_print_state*);      \
   public:                                                      \
   static SCM equal_p (SCM a, SCM b);                           \
-  static CL *unsmob (SCM s) __attribute__((pure))              \
+  static CL *unsmob (SCM s)                                    \
   {                                                            \
     if (SCM_NIMP (s) && SCM_CELL_TYPE (s) == smob_tag_)                \
       return (CL *) SCM_CELL_WORD_1 (s);                       \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]