Test: Disable compilation warnings.
Disable the following warnings: ../epan/oids_test.c:33:68: warning: initialization of a flexible array member [-Wpedantic] ../epan/oids_test.c:34:57: warning: initialization of a flexible array member [-Wpedantic] ../epan/oids_test.c:38:9: warning: initialization of a flexible array member [-Wpedantic] ../epan/oids_test.c:40:60: warning: initialization of a flexible array member [-Wpedantic] ../epan/oids_test.c:41:54: warning: initialization of a flexible array member [-Wpedantic] ../epan/oids_test.c:45:8: warning: initialization of a flexible array member [-Wpedantic] ../epan/oids_test.c:46:84: warning: initialization of a flexible array member [-Wpedantic] Change-Id: I6af0d3182162a15ea6e072029a86a32c0c27c575 Reviewed-on: https://code.wireshark.org/review/32686 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
40ae331eb3
commit
c1e404a36f
|
@ -18,6 +18,8 @@
|
|||
#include "oids.h"
|
||||
#include "wmem/wmem.h"
|
||||
|
||||
#include <ws_diag_control.h>
|
||||
|
||||
static wmem_allocator_t *test_scope;
|
||||
|
||||
typedef struct
|
||||
|
@ -30,6 +32,7 @@ typedef struct
|
|||
guint32 subids[];
|
||||
} example_s;
|
||||
|
||||
DIAG_OFF_PEDANTIC
|
||||
example_s ex1 = {"2.1.1", "joint-iso-itu-t.1.1", 2, "\x51\x01", 3, {2,1,1} };
|
||||
example_s ex2rel = {".81.1", ".81.1", 2, "\x51\x01", 2, {81,1} };
|
||||
example_s ex3 = {"2.1.127.16383.2097151.268435455.128.16384.2097152.268435456",
|
||||
|
@ -44,6 +47,7 @@ example_s ex6rel = {".81.127.16383.2097151.268435455.128.16384.2097152.268435456
|
|||
25, "\x51\x7f\xff\x7f\xff\xff\x7f\xff\xff\xff\x7f\x81\x00\x81\x80\x00\x81\x80\x80\x00\x81\x80\x80\x80\x00",
|
||||
9, { 81, 0x7F, 0x3FFF, 0x1FFFFF, 0x0FFFFFFF, 1+0x7F, 1+0x3FFF, 1+0x1FFFFF, 1+0x0FFFFFFF} };
|
||||
example_s ex7 = {"2.1.1", "joint-iso-itu-t.asn1.basic-encoding", 2, "\x51\x01", 3, {2,1,1} };
|
||||
DIAG_ON_PEDANTIC
|
||||
|
||||
/*
|
||||
* These test are organized in order of the appearance, in oids.h, of
|
||||
|
|
Loading…
Reference in New Issue