Skip to content

Commit

Permalink
fix "warning: no previous prototype for 'minmea_suite'"
Browse files Browse the repository at this point in the history
This warning occurred when compiling using

gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)

on CentOS 6.5 x86_64

using the following CFLAGS (locally inserted into Makefile)

CFLAGS = -g -Wall -Wextra -Wformat=2 -funsigned-char -fstrict-aliasing
 -Wstrict-aliasing -Wfloat-equal -Wundef -Wuninitialized -Wpointer-arith
 -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waddress
 -Waggregate-return -Wstrict-prototypes -Wold-style-declaration
 -Wold-style-definition -Wmissing-parameter-type -Wmissing-prototypes
 -Wmissing-declarations -Wmissing-field-initializers -Wmissing-noreturn
 -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wnested-externs
 -Wshadow -Wsign-compare -Wlogical-op -std=c99

and this make command:

make clean ; make example tests
  • Loading branch information
esoule committed Jun 18, 2014
1 parent 0fc9cea commit 2ae5c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ END_TEST

#pragma GCC diagnostic pop

Suite *minmea_suite(void)
static Suite *minmea_suite(void)
{
Suite *s = suite_create ("minmea");

Expand Down

0 comments on commit 2ae5c4a

Please sign in to comment.