void-packages/srcpkgs/nemiver/patches/bool-conversion.patch
Đoàn Trần Công Danh 65749575ab srcpkgs/n*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

26 lines
700 B
Diff

From e0e42221ceb77d88be64fac1c09792dc5c9e2f43 Mon Sep 17 00:00:00 2001
From: Ben Iofel <iofelben@gmail.com>
Date: Thu, 17 Mar 2016 18:28:02 -0400
Subject: Fix compiliation warnings & errors
---
src/dbgengine/nmv-dbg-common.h | 2 +-
src/dbgengine/nmv-i-var-list-walker.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/dbgengine/nmv-dbg-common.h b/src/dbgengine/nmv-dbg-common.h
index ad3cc00..0edac7c 100644
--- a/src/dbgengine/nmv-dbg-common.h
+++ b/src/dbgengine/nmv-dbg-common.h
@@ -171,7 +171,7 @@ public:
bool has_slot () const
{
- return m_slot;
+ return static_cast<bool> (m_slot);
}
template<class T>
--
cgit v0.12