HomeFreeBSD

[wlanwatch] fix compiler warnings-as-errors on gcc-6.4 mips

Description

[wlanwatch] fix compiler warnings-as-errors on gcc-6.4 mips

  • argc/argv are currently unused
  • msglen is currently unused
  • "default" is a const buffer, but char *cp isn't, so change default string to be a non-const global string variable
  • Make 'cp' private to each context that's using it, which fixes a "variable shadows previous declaration" warning and makes it easier to track where it was being leaked between address family sections

Details

Provenance
adrianAuthored on Dec 29 2020, 5:50 PM
Parents
rG1fef838b913a: [wlanwds] Fix compiler warnings-as-errors on freebsd gcc-6.4 mips
Branches
Unknown
Tags
Unknown