diff mbox

[pyalpm] Workaround https://bugs.python.org/issue33012

Message ID 20180528072512.8338-1-yan12125@gmail.com
State New
Headers show

Commit Message

Emil Velikov via arch-projects May 28, 2018, 7:25 a.m. UTC
This fixes building with GCC 8
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jelle van der Waa May 30, 2018, 7:05 a.m. UTC | #1
On 05/28/18 at 03:25pm, Chih-Hsuan Yen via arch-projects wrote:
> This fixes building with GCC 8
> ---
>  setup.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/setup.py b/setup.py
> index 887b7a1..ba3ae2a 100644
> --- a/setup.py
> +++ b/setup.py
> @@ -9,7 +9,7 @@ os.putenv('LC_CTYPE', 'en_US.UTF-8')
>  pyalpm_version = '0.8'
>  
>  cflags = ['-Wall', '-Wextra', '-Werror',
> -    '-Wno-unused-parameter',
> +    '-Wno-unused-parameter', '-Wno-cast-function-type',
>      '-std=c99', '-D_FILE_OFFSET_BITS=64']
>  
>  alpm = Extension('pyalpm',
> -- 
> 2.17.0

Sorry, I've already fixed this in master before I was aware of this
patch.
Emil Velikov via arch-projects May 30, 2018, 2:42 p.m. UTC | #2
No problem! Thanks for the fast fix and the release!


Jelle van der Waa 於 西元2018年05月30日 15:05 寫道:
> On 05/28/18 at 03:25pm, Chih-Hsuan Yen via arch-projects wrote:
>> This fixes building with GCC 8
>> ---
>>  setup.py | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/setup.py b/setup.py
>> index 887b7a1..ba3ae2a 100644
>> --- a/setup.py
>> +++ b/setup.py
>> @@ -9,7 +9,7 @@ os.putenv('LC_CTYPE', 'en_US.UTF-8')
>>  pyalpm_version = '0.8'
>>  
>>  cflags = ['-Wall', '-Wextra', '-Werror',
>> -    '-Wno-unused-parameter',
>> +    '-Wno-unused-parameter', '-Wno-cast-function-type',
>>      '-std=c99', '-D_FILE_OFFSET_BITS=64']
>>  
>>  alpm = Extension('pyalpm',
>> -- 
>> 2.17.0
> Sorry, I've already fixed this in master before I was aware of this
> patch.
>
diff mbox

Patch

diff --git a/setup.py b/setup.py
index 887b7a1..ba3ae2a 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@  os.putenv('LC_CTYPE', 'en_US.UTF-8')
 pyalpm_version = '0.8'
 
 cflags = ['-Wall', '-Wextra', '-Werror',
-    '-Wno-unused-parameter',
+    '-Wno-unused-parameter', '-Wno-cast-function-type',
     '-std=c99', '-D_FILE_OFFSET_BITS=64']
 
 alpm = Extension('pyalpm',