Enable "missing prototypes" warning for gcc, clang

Missing prototypes for exported functions cause a really huge issue on
Windows.  Enabling the "missing prototypes" warning makes it much easier
to catch this problem.  Naturally, any warnings caused by this have been
fixed.

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2019-06-05 11:19:43 +02:00 committed by eboasson
parent a4d8aba4f9
commit 32b683bf37
26 changed files with 92 additions and 304 deletions

View file

@ -5,7 +5,6 @@
#include "mpt/mpt.h"
#include "dds/dds.h"
#include "helloworlddata.h"
#include "dds/ddsrt/time.h"
#include "dds/ddsrt/strtol.h"
@ -14,6 +13,8 @@
#include "dds/ddsrt/cdtors.h"
#include "dds/ddsrt/sync.h"
#include "hello.h"
#include "helloworlddata.h"
/* An array of one message (aka sample in dds terms) will be used. */
#define MAX_SAMPLES 1

View file

@ -14,7 +14,6 @@
#include <assert.h>
#include "mpt/mpt.h"
#include "rwdata.h"
#include "dds/dds.h"
@ -23,6 +22,9 @@
#include "dds/ddsrt/sockets.h"
#include "dds/ddsrt/heap.h"
#include "ppud.h"
#include "rwdata.h"
void ppud_init (void) { }
void ppud_fini (void) { }

View file

@ -16,7 +16,6 @@
#include "mpt/mpt.h"
#include "dds/dds.h"
#include "rwdata.h"
#include "dds/ddsrt/time.h"
#include "dds/ddsrt/process.h"
@ -25,6 +24,9 @@
#include "dds/ddsi/q_xqos.h"
#include "rwdata.h"
#include "rw.h"
#define NPUB 10
#define NWR_PUB 2