pld: validate exported functions by including its own .h

Let source files to include its file .h to validate the exported
prototypes.

Detected through 'sparse' tool.

Change-Id: I217c2903fdb19e1a2cce39d2536a903c3d72f3f7
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7664
Tested-by: jenkins
This commit is contained in:
Antonio Borneo 2023-05-01 00:29:11 +02:00
parent 177bafd4cc
commit e17fe4db0f
3 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@
#include "config.h"
#endif
#include "certus.h"
#include "lattice.h"
#include "lattice_cmd.h"

View File

@ -9,6 +9,7 @@
#include "config.h"
#endif
#include "ecp2_3.h"
#include "lattice.h"
#define LSCC_REFRESH 0x23

View File

@ -9,6 +9,7 @@
#include "config.h"
#endif
#include "ecp5.h"
#include "lattice.h"
#include "lattice_cmd.h"