Menu

#17 Warning-fixes for owlib

Unstable_(example)
accepted
None
1
2014-04-04
2013-02-10
Mikhail T.
No

Hello! In the course of preparing a FreeBSD-port of owfs, I came up with the attached patch-set, that quiets down compiler warnings I encountered building on FreeBSD-9.1/amd64. These are only for the owlib (owcapi is clean).

The compiler flags I'm using are fairly strict -- to the level of WARNS=3 on FreeBSD:
-Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign
most of the warnings are either functions missing declarations or stuff defined, but never used.

Because there is no PF_NETLINK on FreeBSD, I chose to simply ignore the OW_W1 code (for now). Please, consider including these in the next release. Thank you!

1 Attachments

Discussion

  • Paul Alfille

    Paul Alfille - 2014-04-04

    Are these patches still current?

     
  • Anonymous

    Anonymous - 2014-04-04
    Post awaiting moderation.
  • Paul Alfille

    Paul Alfille - 2014-04-04
    • status: open --> accepted
    • assigned_to: Paul Alfille