Skip to content

Commit

Permalink
Add -Werror flag and remove -pedantic, fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
franc0is committed Sep 7, 2015
1 parent 3b9cf45 commit b84a353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ AC_SUBST(LIBCOAP_API_VERSION)
# see https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
# and http://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html
WARNING_CFLAGS="\
-pedantic \
-Wall \
-Wextra \
-Werror \
-Wformat-security \
-Winline \
-Wmissing-declarations \
Expand Down
2 changes: 2 additions & 0 deletions include/coap/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
extern "C" {
#endif

#include "coap_config.h"

#ifdef HAVE_ASSERT_H
#include <assert.h>
#else
Expand Down

0 comments on commit b84a353

Please sign in to comment.