[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-11-20 Thread m-matti-a dot lehtonen at iki dot fi
--- Comment #10 from m-matti-a dot lehtonen at iki dot fi 2007-11-20 21:53 --- This code piece cannot compiled without warnings or errors. /*! Presentation of transformation matrix */ typedef coordinate_ttransform_matrix_t[ 4 ][ 4 ]; ... void transform_concat (

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-09-26 Thread jozef dot behran at krs dot sk
--- Comment #6 from jozef dot behran at krs dot sk 2007-09-26 12:06 --- Neither C nor C++ have qualified array types, only arrays of qualified element types, but C++ has different rules from C regarding conversions involving qualifiers, which allow some conversions (involving

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-09-26 Thread jozef dot behran at krs dot sk
--- Comment #7 from jozef dot behran at krs dot sk 2007-09-26 12:18 --- Neither C nor C++ have qualified array types, only arrays of qualified element types, but C++ has different rules from C regarding conversions involving qualifiers, which allow some conversions (involving

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-09-26 Thread joseph at codesourcery dot com
--- Comment #8 from joseph at codesourcery dot com 2007-09-26 12:38 --- Subject: Re: Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one On Wed, 26 Sep 2007, jozef dot behran at krs dot sk wrote: Could you give me reference in the

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-09-26 Thread joseph at codesourcery dot com
--- Comment #9 from joseph at codesourcery dot com 2007-09-26 12:42 --- Subject: Re: Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one On Wed, 26 Sep 2007, jozef dot behran at krs dot sk wrote: And another point: Whether C/C++

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-09-19 Thread jbeulich at novell dot com
--- Comment #3 from jbeulich at novell dot com 2007-09-19 09:39 --- Isn't this the same as 16602 (which I don't really understand why it was rejected as invalid)? Also, if this *is* invalid, then what proper mechanism does one have to express what is intended here? And why does similar

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-09-19 Thread schwab at suse dot de
--- Comment #4 from schwab at suse dot de 2007-09-19 09:47 --- *** This bug has been marked as a duplicate of 16602 *** -- schwab at suse dot de changed: What|Removed |Added

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-09-19 Thread joseph at codesourcery dot com
--- Comment #5 from joseph at codesourcery dot com 2007-09-19 19:54 --- Subject: Re: Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one On Wed, 19 Sep 2007, jbeulich at novell dot com wrote: Isn't this the same as 16602 (which I

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-08-15 Thread raeburn at raeburn dot org
--- Comment #1 from raeburn at raeburn dot org 2007-08-15 06:13 --- Subject: Re: New: Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one On Aug 14, 2007, at 23:45, martin dot ferrari at gmail dot com wrote: Sorry if I'm

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-08-15 Thread raeburn at raeburn dot org
--- Comment #2 from raeburn at raeburn dot org 2007-08-15 06:15 --- Subject: Re: New: Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one On Aug 14, 2007, at 23:45, martin dot ferrari at gmail dot com wrote: Sorry if I'm