|
Hi, the warnings should be fixed now, SVN 844. The warning on raspberry pi: Shape.hh: In member function ‘virtual Token Bif_F12_FORMAT::eval_B(Value_P)’: Shape.hh:125:18: error: array subscript is below array bounds [-Werror=array-bounds] if (rho[r]) { volume /= rho[r]; rho[r] = sh; volume *= rho[r]; } ^ Shape.hh:126:30: error: array subscript is below array bounds [-Werror=array-bounds] else { rho[r] = sh; recompute_volume(); } } ^ seems to be entirely bogus. I have checked all occurrences of Shape::set_shape_item(), including all inlined functions in Shape.hh using Shape::set_shape_item(), in the functions mentioned, and I could not find any reason while the compiler came to that conclusion. Unfortunately the compiler did not bother to tell at which line number this happens. I also updated FILE_IO.apl as proposed. /// Jürgen On 01/11/2017 06:47 AM, David B.
Lamkins wrote:
There's one remaining when compiling 843 under clang. The attached patch fixes that as well as the remaining error reported by gcc.On Tue, Jan 10, 2017 at 03:54:36PM -0800, David Lamkins wrote:Worth noting: There are now no warnings or notes when compiling under gcc 6.3.1. On Tue, Jan 10, 2017 at 3:45 PM, David Lamkins <[email protected]> wrote: |
- Re: [Bug-apl] SVN 839 doesn't compile Juergen Sauermann
- Re: [Bug-apl] SVN 839 doesn't compile David Lamkins
- Re: [Bug-apl] SVN 839 doesn't compile enztec
- Re: [Bug-apl] SVN 839 doesn't compile Juergen Sauermann
- Re: [Bug-apl] SVN 839 doesn't compile Christian Robert
- Re: [Bug-apl] SVN 839 doesn't compile Juergen Sauermann
- Re: [Bug-apl] SVN 839 doesn't compile Christian Robert
- Re: [Bug-apl] SVN 839 doesn't compile David Lamkins
- Re: [Bug-apl] SVN 839 doesn't compile David Lamkins
- Re: [Bug-apl] SVN 839 doesn't compile David B. Lamkins
- Re: [Bug-apl] SVN 839 doesn't compile Juergen Sauermann
- Re: [Bug-apl] SVN 839 doesn't compile Christian Robert
- Re: [Bug-apl] SVN 839 doesn't compile Juergen Sauermann
- Re: [Bug-apl] SVN 839 doesn't compile Christian Robert
- Re: [Bug-apl] SVN 839 doesn't compile Kacper Gutowski
- Re: [Bug-apl] SVN 839 doesn't compile Christian Robert
- Re: [Bug-apl] SVN 839 doesn't compile Juergen Sauermann
- Re: [Bug-apl] SVN 839 doesn't compile Elias Mårtenson
- Re: [Bug-apl] SVN 839 doesn't compile Blake McBride
- Re: [Bug-apl] SVN 839 doesn't compile Juergen Sauermann
- Re: [Bug-apl] SVN 839 doesn't compile Xiao-Yong Jin
