Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Problem with types in Debian10

Date2019-08-04 13:54
FromJohn
Subject[Csnd-dev] Problem with types in Debian10
It seems that adding a useless cast to void* pacifies the
compiler.....


Now there is the errors in generated flex code to handle.

Engine/csound_prelex.c: In function ‘yy_get_next_buffer’:
Engine/csound_prelex.c:989:18: error: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare]
Engine/csound_prelex.c:2309:3: note: in expansion of macro ‘YY_INPUT’
/home/jpff/csound6/Engine/csound_pre.lex: At top level:
cc1: error: unrecognized command line option ‘-Wno-strict-aliasing-O3’ [-Werror]
cc1: all warnings being treated as errors

Date2019-08-04 13:56
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Problem with types in Debian10
yep, that looks more of a pain.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 4 Aug 2019, at 13:55, John  wrote:
> 
> It seems that adding a useless cast to void* pacifies the
> compiler.....
> 
> 
> Now there is the errors in generated flex code to handle.
> 
> Engine/csound_prelex.c: In function ‘yy_get_next_buffer’:
> Engine/csound_prelex.c:989:18: error: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare]
> Engine/csound_prelex.c:2309:3: note: in expansion of macro ‘YY_INPUT’
> /home/jpff/csound6/Engine/csound_pre.lex: At top level:
> cc1: error: unrecognized command line option ‘-Wno-strict-aliasing-O3’ [-Werror]
> cc1: all warnings being treated as errors