pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/cwrappers/files/bin Mark command_child_exec a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aabb0084d315
branches:  trunk
changeset: 355681:aabb0084d315
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Dec 09 22:25:28 2016 +0000

description:
Mark command_child_exec as noreturn. Fix typo.

diffstat:

 pkgtools/cwrappers/files/bin/Makefile |  4 ++--
 pkgtools/cwrappers/files/bin/common.c |  5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r d3345ed39de1 -r aabb0084d315 pkgtools/cwrappers/files/bin/Makefile
--- a/pkgtools/cwrappers/files/bin/Makefile     Fri Dec 09 22:24:50 2016 +0000
+++ b/pkgtools/cwrappers/files/bin/Makefile     Fri Dec 09 22:25:28 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2016/12/08 16:58:50 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2016/12/09 22:25:28 joerg Exp $
 #
 PROGS= as-wrapper cc-wrapper c++-wrapper cpp-wrapper f77-wrapper \
        imake-wrapper ld-wrapper libtool-wrapper shlibtool-wrapper
@@ -39,7 +39,7 @@
 
 transform-cc.c: transform-gcc.c
 
-.ifdef MAINTAINER_NODE
+.ifdef MAINTAINER_MODE
 transform-gcc.c: transform-gcc-rules rules2src.awk
        awk -v output=transform-gcc.c -f rules2src.awk transform-gcc-rules
 .endif
diff -r d3345ed39de1 -r aabb0084d315 pkgtools/cwrappers/files/bin/common.c
--- a/pkgtools/cwrappers/files/bin/common.c     Fri Dec 09 22:24:50 2016 +0000
+++ b/pkgtools/cwrappers/files/bin/common.c     Fri Dec 09 22:25:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: common.c,v 1.5 2016/11/27 11:46:45 joerg Exp $ */
+/* $NetBSD: common.c,v 1.6 2016/12/09 22:25:28 joerg Exp $ */
 
 /*-
  * Copyright (c) 2009 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -314,6 +314,9 @@
                free(buf);
 }
 
+#if __GNUC__ + 0 >= 3
+__attribute__((__noreturn__))
+#endif
 static void
 command_child_exec(char **argv)
 {



Home | Main Index | Thread Index | Old Index