From: Tilman Sauerbeck Date: Tue, 9 Jul 2019 18:22:23 +0000 (+0200) Subject: common: Fix two -Wold-style-declaration warnings. X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=08e2e672414121f839ed0519c2e322d6a562e1c5;p=gps-watch.git common: Fix two -Wold-style-declaration warnings. This fixes the following warnings: virtual_com.c:105:1: warning: 'static' is not at beginning of declaration volatile static uint32_t s_recvSize = 0; ^~~~~~~~ virtual_com.c:106:1: warning: 'static' is not at beginning of declaration volatile static uint8_t s_sendComplete = 0; ^~~~~~~~ --- diff --git a/src/common/virtual_com.c b/src/common/virtual_com.c index 207ff69..2427f93 100644 --- a/src/common/virtual_com.c +++ b/src/common/virtual_com.c @@ -102,8 +102,8 @@ static usb_cdc_acm_info_t s_usbCdcAcmInfo = {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 0, /* Data buffer for receiving and sending*/ static uint8_t s_currRecvBuf[DATA_BUFF_SIZE]; -volatile static uint32_t s_recvSize = 0; -volatile static uint8_t s_sendComplete = 0; +static volatile uint32_t s_recvSize = 0; +static volatile uint8_t s_sendComplete = 0; static uint32_t s_usbBulkMaxPacketSize = FS_CDC_VCOM_BULK_OUT_PACKET_SIZE; /******************************************************************************* * Prototypes