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"
|       |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pull/537/head
Marc Kleine-Budde 2024-05-06 14:59:16 +02:00
parent c2e40edd24
commit c98e25334b
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ int main(void)
char rxmsg[50];
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wgnu-variable-sized-type-not-at-end"
struct {
struct bcm_msg_head msg_head;