]> sigrok.org Git - libsigrokdecode.git/commitdiff
Fix more warnings exposed by -Wmissing-prototypes.
authorUwe Hermann <redacted>
Sat, 1 Feb 2014 15:03:22 +0000 (16:03 +0100)
committerUwe Hermann <redacted>
Sat, 1 Feb 2014 15:04:47 +0000 (16:04 +0100)
tests/Makefile.am
tests/check_core.c
tests/check_decoder.c
tests/check_inst.c
tests/check_main.c
tests/check_session.c
tests/lib.h [new file with mode: 0644]

index bd0858ff12ab89867264890d100ca15fe0a9a277..7b2f8d8863a2d102f50b2c947f9ba268c4b6c361 100644 (file)
@@ -23,6 +23,7 @@ TESTS = check_main
 check_PROGRAMS = ${TESTS}
 check_main_SOURCES = \
        $(top_builddir)/libsigrokdecode.h \
+       lib.h \
        check_main.c \
        check_core.c \
        check_decoder.c \
index cbbb26fd040d760f0f5301bf168ddd977af3baed..e5b7b356e580ec9851a8b32ec05f107ab7e33184 100644 (file)
@@ -21,6 +21,7 @@
 #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */
 #include <stdlib.h>
 #include <check.h>
+#include "lib.h"
 
 static void setup(void)
 {
index d62a1ebad38f81936175d1eb66ba9c53e9a150fa..527845f9ae4e9406693041174554349ee38cec5f 100644 (file)
@@ -21,6 +21,7 @@
 #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */
 #include <stdlib.h>
 #include <check.h>
+#include "lib.h"
 
 static void setup(void)
 {
index 87dbe9117e069a18736199f2895a002bcac37137..fccd2e18192bf0dc844e9410746afe0bffbf3b90 100644 (file)
@@ -21,6 +21,7 @@
 #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */
 #include <stdlib.h>
 #include <check.h>
+#include "lib.h"
 
 static void setup(void)
 {
index 8c86532934e51f25b5eec69deaa6639558cbe9ba..6af3c3f72dbce614621c1d645be0d29bb4efed6e 100644 (file)
 #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */
 #include <stdlib.h>
 #include <check.h>
-
-Suite *suite_core(void);
-Suite *suite_decoder(void);
-Suite *suite_inst(void);
-Suite *suite_session(void);
+#include "lib.h"
 
 int main(void)
 {
index 53b874b370bd44fd453576debdd8a09efa531b48..8a34f32d8c6aff40f0080a99c2a40afabe0f35c9 100644 (file)
@@ -22,6 +22,7 @@
 #include "../libsigrokdecode-internal.h"
 #include <stdlib.h>
 #include <check.h>
+#include "lib.h"
 
 static void setup(void)
 {
diff --git a/tests/lib.h b/tests/lib.h
new file mode 100644 (file)
index 0000000..e5609d4
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * This file is part of the libsigrokdecode project.
+ *
+ * Copyright (C) 2013 Uwe Hermann <uwe@hermann-uwe.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ */
+
+#ifndef LIBSIGROKDECODE_TESTS_LIB_H
+#define LIBSIGROKDECODE_TESTS_LIB_H
+
+Suite *suite_core(void);
+Suite *suite_decoder(void);
+Suite *suite_inst(void);
+Suite *suite_session(void);
+
+#endif