diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2021-04-25 00:06:00 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-06-04 17:40:39 +0100 |
commit | b8e18d292eb6a3459a018f504f2f62d6a25c26b2 (patch) | |
tree | 863e8f21db27f6579159ea3be0bd734647911672 /src/rtos/rtos.c | |
parent | 3bd26ebb59e2932b361b40176b818174f561f901 (diff) | |
download | riscv-openocd-b8e18d292eb6a3459a018f504f2f62d6a25c26b2.zip riscv-openocd-b8e18d292eb6a3459a018f504f2f62d6a25c26b2.tar.gz riscv-openocd-b8e18d292eb6a3459a018f504f2f62d6a25c26b2.tar.bz2 |
helper/jim-nvp: comply with coding style [1/2]
The helper jim-nvp does not comply with OpenOCD coding style due
to typedef of struct and CamelCase symbol names.
While it's trivial fixing the helper and all its current use in
the code, changing these APIs will potentially break a number of
patches pending in gerrit. Gerrit will not trigger any alert, but
the code will generate compile error after the merge.
Add the compile flag "-Wno-error=deprecated-declarations" to keep
as warning (not as error) the use of "deprecated" functions and
types.
Rename all the CamelCase symbols is lowercase and provide struct
prototypes in place of the typedef.
Add a DEPRECATED section to 'jim-nvp.h' where the old CamelCase
symbols and the old typedef are re-declared with compile attribute
'deprecated'.
With this change OpenOCD compiles, but generates warnings.
The remaining changes allover OpenOCD code will be fixed in a
separate patch for easier review.
The patches merged later that still use the old deprecated API
will compile with warnings. This will permit to identify and fix
these cases.
Change-Id: I786385d0f662dbb1be5be313ae42623156d68ce5
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6183
Tested-by: jenkins
Reviewed-by: Marc Schink <dev@zapb.de>
Diffstat (limited to 'src/rtos/rtos.c')
0 files changed, 0 insertions, 0 deletions