Pārlūkot izejas kodu

fix: 修正psram和cmac的old-style-declaration编译警告

Wendal Chen 1 gadu atpakaļ
vecāks
revīzija
aa581f97e6

+ 1 - 1
platform/drivers/psram/wm_psram.c

@@ -13,7 +13,7 @@
 /* Threshhold for punting to the byte copier.  */
 #define TOO_SMALL(LEN)  ((LEN) < BIGBLOCKSIZE)
 
-volatile static uint32_t dma_rx_tx_done = 0;
+static volatile uint32_t dma_rx_tx_done = 0;
 static uint32_t psram_channel = 0;
 
 

+ 1 - 1
src/bt/blehost/ext/tinycrypt/src/cmac_mode.c

@@ -36,7 +36,7 @@
 #include <tinycrypt/utils.h>
 
 /* max number of calls until change the key (2^48).*/
-const static uint64_t MAX_CALLS = ((uint64_t)1 << 48);
+static const uint64_t MAX_CALLS = ((uint64_t)1 << 48);
 
 /*
  *  gf_wrap -- In our implementation, GF(2^128) is represented as a 16 byte