0003-bmake-new-local-modifications.patch

kAworu, 11/22/2013 07:57 AM

Download (2.63 KB)

View differences:

contrib/bmake/bmake.1
1543 1543
.Li .unexport-env
1544 1544
.Li .export PATH
1545 1545
.Li .endif
1546
.Pp
1547 1546
.Ed
1547
.Pp
1548 1548
Would result in an environment containing only
1549 1549
.Ql Ev PATH ,
1550 1550
which is the minimal useful environment.
contrib/bmake/main.c
922 922
	    const int mib[2] = { CTL_HW, HW_MACHINE_ARCH };
923 923
	    size_t len = sizeof(machine_arch_buf);
924 924
                
925
	    if (sysctl(mib, __arraycount(mib), machine_arch_buf,
925
	    if (sysctl(__DECONST(int *, mib) /* XXX */, __arraycount(mib), machine_arch_buf,
926 926
		    &len, NULL, 0) < 0) {
927 927
		(void)fprintf(stderr, "%s: sysctl failed (%s).\n", progname,
928 928
		    strerror(errno));
contrib/bmake/meta.c
658 658
 * It does not disturb our state.
659 659
 */
660 660
void
661
meta_job_child(Job *job)
661
meta_job_child(Job __unused *job)
662 662
{
663 663
#ifdef USE_FILEMON
664 664
    BuildMon *pbm;
......
743 743
}
744 744

  
745 745
void
746
meta_cmd_finish(void *pbmp)
746
meta_cmd_finish(void __unused *pbmp)
747 747
{
748 748
#ifdef USE_FILEMON
749 749
    BuildMon *pbm = pbmp;
contrib/bmake/parse.c
1216 1216
		 */
1217 1217
		int 	length;
1218 1218
		void    *freeIt;
1219
		char	*result;
1219
		__unused char *result; /* XXX */
1220 1220

  
1221 1221
		result = Var_Parse(cp, VAR_CMD, TRUE, &length, &freeIt);
1222 1222
		if (freeIt)
contrib/bmake/var.c
543 543
    if (strchr(name, '$')) {
544 544
	cp = Var_Subst(NULL, name, VAR_GLOBAL, 0);
545 545
    } else {
546
	cp = (char *)name;
546
	cp = __DECONST(char *,name); /* XXX */
547 547
    }
548 548
    ln = Hash_FindEntry(&ctxt->context, cp);
549 549
    if (DEBUG(VAR)) {
550
-