[beast: 28/49] BSE: stop building if bseprocidl ran into an error



commit 19c5d8524c49c83f9252dd467db86fdd4583e765
Author: Tim Janik <timj gnu org>
Date:   Tue Jun 23 05:18:03 2015 +0200

    BSE: stop building if bseprocidl ran into an error

 bse/Makefile.am   |    2 +-
 bse/bseprocidl.cc |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bse/Makefile.am b/bse/Makefile.am
index abf8559..1bb6cea 100644
--- a/bse/Makefile.am
+++ b/bse/Makefile.am
@@ -292,7 +292,7 @@ bsegenbasics.cc: bsebasics.idl $(SFIDL) bsebasics.genidl.hh
 bsehack.idl: bsebasics.idl bseprocidl
        grep -v bsehack.idl $(srcdir)/bse.idl | $(SFIDL) $(SFIDL_INC) --list-types - > xgen-2-$(@F)
        echo "/* this file was generated from make $< */" > xgen-$(@F) \
-       && ./bseprocidl xgen-2-$(@F) >> xgen-$(@F) \
+       && ./bseprocidl xgen-2-$(@F) --g-fatal-warnings >> xgen-$(@F) \
        && cp xgen-$(@F) bsehack.idl \
        && rm -f xgen-$(@F) xgen-2-$(@F)
 CLEANFILES += bsehack.idl
diff --git a/bse/bseprocidl.cc b/bse/bseprocidl.cc
index cd8f00a..d2ce551 100644
--- a/bse/bseprocidl.cc
+++ b/bse/bseprocidl.cc
@@ -402,7 +402,7 @@ int
 main (int argc, char **argv)
 {
   /* exclude all types given in a file, passed as first argument, from generation */
-  if (argc == 2)
+  if (argc >= 2)
     {
       FILE *excludefile = fopen (argv[1], "r");
       if (!excludefile)


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