From eec1f4abf4794520e5e88518a738e337e865a50111aff0d3efecdb94bab253a8 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 21 Sep 2011 11:51:27 +0000 Subject: [PATCH] old stuff OBS-URL: https://build.opensuse.org/package/show/devel:tools/coccinelle?expand=0&rev=19 --- cocci-cast.diff | 21 --------------------- cocci-pythondetect.diff | 17 ----------------- 2 files changed, 38 deletions(-) delete mode 100644 cocci-cast.diff delete mode 100644 cocci-pythondetect.diff diff --git a/cocci-cast.diff b/cocci-cast.diff deleted file mode 100644 index 8452702..0000000 --- a/cocci-cast.diff +++ /dev/null @@ -1,21 +0,0 @@ -Work around compiler warning - -pycaml_ml.c: In function 'pymodule_initmodule': -pycaml_ml.c:1441: warning: assignment makes pointer from integer without a cast ---- - pycaml/pycaml_ml.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: coccinelle-0.2.2/pycaml/pycaml_ml.c -=================================================================== ---- coccinelle-0.2.2.orig/pycaml/pycaml_ml.c -+++ coccinelle-0.2.2/pycaml/pycaml_ml.c -@@ -1438,7 +1438,7 @@ value pymodule_initmodule( value name, v - for( i = 0; i < Wosize_val(funclist); i++ ) { - item = Field(funclist,i); - methods[i].ml_name = String_val(Field(item,0)); -- methods[i].ml_meth = pywrap_closure(Field(item,1)); -+ methods[i].ml_meth = (void *)(long)pywrap_closure(Field(item,1)); - methods[i].ml_flags = Int_val(Field(item,2)); - methods[i].ml_doc = String_val(Field(item,3)); - } diff --git a/cocci-pythondetect.diff b/cocci-pythondetect.diff deleted file mode 100644 index 0401919..0000000 --- a/cocci-pythondetect.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- - configure | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: coccinelle-0.2.5-rc2/configure -=================================================================== ---- coccinelle-0.2.5-rc2.orig/configure -+++ coccinelle-0.2.5-rc2/configure -@@ -198,7 +198,7 @@ We need 3.XX", - if($python) { - if(check_config( - "python --version 2>&1 |", -- "Python 2\.[567]\..*", -+ qr/Python 2\.[567]\b/, - "python is present", - "python is missing or is not a good version." - ))