diff options
author | Gerald Combs <gerald@wireshark.org> | 2019-04-02 16:57:23 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2019-04-02 18:58:28 +0000 |
commit | c1e404a36f3acb5387afe208a98dd994d443443f (patch) | |
tree | 1b70f5315b7b4f27cbc1bb64df04c9da106f4e95 /epan | |
parent | 40ae331eb3bb604309c8d7bb60ed816c9901a616 (diff) |
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>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/oids_test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/oids_test.c b/epan/oids_test.c index d8ded1e09f..4711ec5cdc 100644 --- a/epan/oids_test.c +++ b/epan/oids_test.c @@ -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 |