circuitpython-ulab/code
Jeff Epler 22605c6fe9 Fix -Wshadow diagnostics
A declaration of a local variable can "shadow" a parameter or another
local variable declared in an outer scope.

Since this can create confusion about which variable is referred to, it
is better to fix these diagnostics.

A variety of changes were made:
 - Add curly braces to reduce the scope of a variable (ndarray_unary_op)
   so that its scope has ended before the next scope where it is used
 - be consistent about whether a variable is declared with for-loop scope
   or not (ndarray_print_row)
 - remove a declaration so that the outer variable is used, after verifying
   this will function properly (insert_slice_list)
 - rename a variable introduced by a macro (RUN_SUM, RUN_STD) so it does
   not shadow another variable
2020-04-06 08:12:47 -05:00
..
create.c Fix -Wmissing-prototypes diagnostics 2020-04-06 08:05:20 -05:00
create.h Fix -Wmissing-prototypes diagnostics 2020-04-06 08:05:43 -05:00
extras.c Fix -Wmissing-prototypes diagnostics 2020-04-06 08:05:20 -05:00
extras.h moved spectrum to extras module 2020-03-09 20:47:58 +01:00
fft.c Fix -Wmissing-prototypes diagnostics 2020-04-06 08:05:20 -05:00
fft.h moved spectrum to extras module 2020-03-09 20:47:58 +01:00
filter.c Fix -Wmissing-prototypes diagnostics 2020-04-06 08:05:20 -05:00
filter.h roll back constness corrections 2020-02-18 21:00:30 -06:00
linalg.c Fix -Wmissing-prototypes diagnostics 2020-04-06 08:05:20 -05:00
linalg.h added function declarations to linalg.h 2020-03-09 21:22:31 +01:00
micropython.mk created new create sub-module for ndarray initialisation functions 2020-02-27 20:39:13 +01:00
ndarray.c Fix -Wshadow diagnostics 2020-04-06 08:12:47 -05:00
ndarray.h implemented the ==, and != binary operators 2020-04-04 22:14:36 +02:00
ndarray_properties.h Use circuitpy-compat for none 2020-02-27 08:56:04 -06:00
numerical.c Fix -Wmissing-prototypes diagnostics 2020-04-06 08:05:20 -05:00
numerical.h Fix -Wshadow diagnostics 2020-04-06 08:12:47 -05:00
poly.c remove unused function get_nditerable_len 2020-04-06 08:06:33 -05:00
poly.h roll back constness corrections 2020-02-18 21:00:30 -06:00
ulab.c circuitpython compatibility 2020-04-06 07:38:12 -05:00
ulab.h moved spectrum to extras module 2020-03-09 20:47:58 +01:00
vectorise.c Fix -Wmissing-prototypes diagnostics 2020-04-06 08:05:20 -05:00
vectorise.h Fix -Wmissing-prototypes diagnostics 2020-04-06 08:05:20 -05:00