tests: Fix a few warnings.

Fix a bunch of "no previous prototype for ..." warnings exposed
by -Wmissing-prototypes.
This commit is contained in:
Uwe Hermann 2014-01-17 20:41:56 +01:00
parent 2438b737ae
commit 17794067f9
6 changed files with 13 additions and 8 deletions

View File

@ -21,6 +21,7 @@
#include <stdlib.h>
#include <check.h>
#include "../libsigrok.h"
#include "lib.h"
/*
* Check various basic init related things.

View File

@ -21,14 +21,7 @@
#include <stdlib.h>
#include <check.h>
#include "../libsigrok.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);
#include "lib.h"
int main(void)
{

View File

@ -20,6 +20,7 @@
#include <check.h>
#include "../libsigrok.h"
#include "lib.h"
struct sr_context *sr_ctx;

View File

@ -21,6 +21,7 @@
#include <stdlib.h>
#include <check.h>
#include "../libsigrok.h"
#include "lib.h"
/*
* Check the version number API calls and macros.

View File

@ -24,6 +24,7 @@
#include <glib/gstdio.h>
#include <check.h>
#include "../libsigrok.h"
#include "lib.h"
/* Get a libsigrok driver by name. */
struct sr_dev_driver *srtest_driver_get(const char *drivername)

View File

@ -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);
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