c987560802
```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 ```
15 lines
474 B
Diff
15 lines
474 B
Diff
--- a/src/base/cl_macros.h 2014-07-30 15:19:17.474034947 +0200
|
|
+++ b/src/base/cl_macros.h 2014-07-30 15:19:28.210034058 +0200
|
|
@@ -66,11 +66,7 @@
|
|
|
|
// Ignore a value (instead of assigning it to a variable).
|
|
// unused ...
|
|
- #if defined(__GNUC__) || defined(__KCC) // avoid a gcc warning "statement with no effect"
|
|
- #define unused (void)
|
|
- #else
|
|
- #define unused
|
|
- #endif
|
|
+ #define unused
|
|
|
|
// Denotes a point where control flow can never arrive.
|
|
// NOTREACHED
|