lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
944 stars 385 forks source link

Empty Macros #503

Open nosracd opened 2 months ago

nosracd commented 2 months ago

The *_decode_array_cleanup macros defined in lcm/lcm_coretypes.h have an empty definition. For example:

#define __double_decode_array_cleanup(p, sz) \
    {                                        \
    }

This produces unused parameter warnings when compiling C code outputted from lcm-gen.

It looks like these macros should just be removed, but doing so would be a breaking change and not possible without incrementing the major release version.