tests: Fix a few warnings.
Fix a bunch of "no previous prototype for ..." warnings exposed by -Wmissing-prototypes.
This commit is contained in:
parent
2438b737ae
commit
17794067f9
|
@ -21,6 +21,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <check.h>
|
#include <check.h>
|
||||||
#include "../libsigrok.h"
|
#include "../libsigrok.h"
|
||||||
|
#include "lib.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check various basic init related things.
|
* Check various basic init related things.
|
||||||
|
|
|
@ -21,14 +21,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <check.h>
|
#include <check.h>
|
||||||
#include "../libsigrok.h"
|
#include "../libsigrok.h"
|
||||||
|
#include "lib.h"
|
||||||
Suite *suite_core(void);
|
|
||||||
Suite *suite_driver_all(void);
|
|
||||||
Suite *suite_input_all(void);
|
|
||||||
Suite *suite_input_binary(void);
|
|
||||||
Suite *suite_output_all(void);
|
|
||||||
Suite *suite_strutil(void);
|
|
||||||
Suite *suite_version(void);
|
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include <check.h>
|
#include <check.h>
|
||||||
#include "../libsigrok.h"
|
#include "../libsigrok.h"
|
||||||
|
#include "lib.h"
|
||||||
|
|
||||||
struct sr_context *sr_ctx;
|
struct sr_context *sr_ctx;
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <check.h>
|
#include <check.h>
|
||||||
#include "../libsigrok.h"
|
#include "../libsigrok.h"
|
||||||
|
#include "lib.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check the version number API calls and macros.
|
* Check the version number API calls and macros.
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
#include <check.h>
|
#include <check.h>
|
||||||
#include "../libsigrok.h"
|
#include "../libsigrok.h"
|
||||||
|
#include "lib.h"
|
||||||
|
|
||||||
/* Get a libsigrok driver by name. */
|
/* Get a libsigrok driver by name. */
|
||||||
struct sr_dev_driver *srtest_driver_get(const char *drivername)
|
struct sr_dev_driver *srtest_driver_get(const char *drivername)
|
||||||
|
|
|
@ -41,4 +41,12 @@ void srtest_check_samplerate(struct sr_context *sr_ctx, const char *drivername,
|
||||||
void srtest_buf_to_file(const char *filename, const uint8_t *buf, uint64_t len);
|
void srtest_buf_to_file(const char *filename, const uint8_t *buf, uint64_t len);
|
||||||
GArray *srtest_get_enabled_logic_probes(const struct sr_dev_inst *sdi);
|
GArray *srtest_get_enabled_logic_probes(const struct sr_dev_inst *sdi);
|
||||||
|
|
||||||
|
Suite *suite_core(void);
|
||||||
|
Suite *suite_driver_all(void);
|
||||||
|
Suite *suite_input_all(void);
|
||||||
|
Suite *suite_input_binary(void);
|
||||||
|
Suite *suite_output_all(void);
|
||||||
|
Suite *suite_strutil(void);
|
||||||
|
Suite *suite_version(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue