mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-20 14:29:55 +02:00
bcmserver: use pragma to silence unknown pragma option
Silence the following warning by switching it of via a pragma. | bcmserver.c: In function 'main': | bcmserver.c:159:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] | 159 | #pragma GCC diagnostic ignored "-Wgnu-variable-sized-type-not-at-end" | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
@@ -156,6 +156,7 @@ int main(void)
|
|||||||
char rxmsg[50];
|
char rxmsg[50];
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wpragmas"
|
||||||
#pragma GCC diagnostic ignored "-Wgnu-variable-sized-type-not-at-end"
|
#pragma GCC diagnostic ignored "-Wgnu-variable-sized-type-not-at-end"
|
||||||
struct {
|
struct {
|
||||||
struct bcm_msg_head msg_head;
|
struct bcm_msg_head msg_head;
|
||||||
|
|||||||
Reference in New Issue
Block a user