Skip to content

Commit

Permalink
Merge pull request #116 from olerem/warnings-2016.11.26
Browse files Browse the repository at this point in the history
Warnings 2016.11.26
  • Loading branch information
erikarn authored Nov 26, 2016
2 parents f206e56 + 83dd3bf commit 9deca3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion target_firmware/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ ADD_DEFINITIONS(
-Wunused-variable
-Wunused-value
-Wpointer-arith
-Wundef
-nostdlib
-Wundef
-Wunused-but-set-variable
-Wmaybe-uninitialized
)
ADD_DEFINITIONS(
-D_RAM_
Expand Down
4 changes: 2 additions & 2 deletions target_firmware/wlan/if_ath.c
Original file line number Diff line number Diff line change
Expand Up @@ -1098,9 +1098,9 @@ static void ath_enable_intr_tgt(void *Context, A_UINT16 Command,
{
struct ath_softc_tgt *sc = (struct ath_softc_tgt *)Context;
struct ath_hal *ah = sc->sc_ah;
a_uint32_t intr;
a_uint32_t intr = 0;

if (data)
if (datalen == 4)
intr = (*(a_uint32_t *)data);

intr = adf_os_ntohl(intr);
Expand Down

0 comments on commit 9deca3b

Please sign in to comment.