[riot-notifications] [RIOT-OS/RIOT] esp_now: fix unused variable warning (#12263)

benpicco notifications at github.com
Tue Sep 17 19:08:35 CEST 2019


### Contribution description

`esp_now_pkt_hdr_t *hdr` is only used if` gnrc_sixlowpan` is used, so move it into the according `#ifdef`

### Testing procedure
- Add `USEMODULE += esp_now` to both `examples/default` and `examples/gnrc_networking`
- Compile both for e.g. `BOARD=esp8266-esp-12x`
- no warnings / errors should be printed.

### Issues/PRs references
fixes #12257

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/12263

-- Commit Summary --

  * esp_now: fix unused variable warning

-- File Changes --

    M cpu/esp_common/esp-now/esp_now_gnrc.c (3)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/12263.patch
https://github.com/RIOT-OS/RIOT/pull/12263.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12263
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190917/49ded310/attachment.htm>


More information about the notifications mailing list