[augeas-devel] augeas: master - Fix compilation on OpenSolaris

David Lutterkort lutter at fedoraproject.org
Wed Feb 11 21:43:11 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=dd25c31554555d67cb21ed46253af4f8ca533e0e
Commit:        dd25c31554555d67cb21ed46253af4f8ca533e0e
Parent:        64f8eb53982f3d97a7876b26f9f623a74c849fb3
Author:        David Lutterkort <lutter at redhat.com>
AuthorDate:    Fri Feb 6 21:41:10 2009 -0800
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Fri Feb 6 21:41:10 2009 -0800

Fix compilation on OpenSolaris

* src/pathx.c (position): assert not marked as noreturn
---
 src/pathx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/pathx.c b/src/pathx.c
index 14f99e6..2e1eaf8 100644
--- a/src/pathx.c
+++ b/src/pathx.c
@@ -1353,6 +1353,9 @@ static int position(struct step *step) {
         }
     }
     assert(0);
+    /* Never reached, but Solaris headers miss __attribute__((noreturn))
+       in assert.h */
+    return -1;
 }
 
 static int pred_matches(struct step *step, struct state *state) {




More information about the augeas-devel mailing list