pesco / dnp3

A DNP3 parser implementation in Hammer
15 stars 7 forks source link

Warnings when compiled w/ -Wall #2

Open jadamcrain opened 8 years ago

jadamcrain commented 8 years ago

Compiler warnings of different types w/ GCC & Clang, e.g.:

../src/format.c:204:12: warning: unused variable ‘fsize’ [-Wunused-variable] format.c:198:1: warning: control reaches end of non-void function [-Wreturn-type]

Recommend adding -Wall to default build and eliminating warnings with both GCC and Clang