summaryrefslogtreecommitdiff
path: root/dev-java/openj9-openjdk/files/omr-fam.patch
blob: 9141ec17c68c9c7fe55556a2752103a111bd13ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
diff --git a/ddr/tools/blob_reader/blob_reader.cpp b/ddr/tools/blob_reader/blob_reader.cpp
index 028decd0c..a0212609f 100644
--- a/ddr/tools/blob_reader/blob_reader.cpp
+++ b/ddr/tools/blob_reader/blob_reader.cpp
@@ -85,7 +85,7 @@ struct BlobHeaderV1 {
 
 struct BlobString {
 	uint16_t length;
-	char data[1]; /* flexible array member */
+	char data[];
 
 	void endian_swap()
 	{
diff --git a/include_core/ute_core.h b/include_core/ute_core.h
index 8b3b1c65d..330ea52c6 100644
--- a/include_core/ute_core.h
+++ b/include_core/ute_core.h
@@ -125,7 +125,7 @@ typedef struct UtTraceRecord {
 	uint64_t threadSyn2;	/* Thread synonym 2               */
 	int32_t firstEntry;		/* Offset to first trace entry    */
 	int32_t nextEntry;		/* Offset to next entry           */
-	char threadName[1];		/* Thread name                    */
+	char threadName[];		/* Thread name                    */
 } UtTraceRecord;
 
 /*
diff --git a/include_core/ute_dataformat.h b/include_core/ute_dataformat.h
index 71d9e36ad..8a9dcb487 100644
--- a/include_core/ute_dataformat.h
+++ b/include_core/ute_dataformat.h
@@ -180,7 +180,7 @@ typedef struct UtProcSection {
 #define UT_TRACE_ACTIVE_SECTION_NAME "UTTA"
 typedef struct UtActiveSection {
 	UtDataHeader header; /* Eyecatcher, version etc        */
-	char active[1]; /* Trace activation commands      */
+	char active[]; /* Trace activation commands      */
 } UtActiveSection;
 
 /*
@@ -191,7 +191,7 @@ typedef struct UtActiveSection {
 #define UT_TRACE_SERVICE_SECTION_NAME "UTSS"
 typedef struct UtServiceSection {
 	UtDataHeader header; /* Eyecatcher, version etc        */
-	char level[1]; /* Service level info             */
+	char level[]; /* Service level info             */
 } UtServiceSection;
 
 /*
@@ -202,7 +202,7 @@ typedef struct UtServiceSection {
 #define UT_TRACE_STARTUP_SECTION_NAME "UTSO"
 typedef struct UtStartupSection {
 	UtDataHeader header; /* Eyecatcher, version etc        */
-	char options[1]; /* Startup options                */
+	char options[]; /* Startup options                */
 } UtStartupSection;
 
 /*
diff --git a/omrtrace/omrtrace_internal.h b/omrtrace/omrtrace_internal.h
index e52347eac..a68a88abd 100644
--- a/omrtrace/omrtrace_internal.h
+++ b/omrtrace/omrtrace_internal.h
@@ -157,7 +157,7 @@ typedef struct OMR_TraceGlobal OMR_TraceGlobal;
 typedef struct  UtTraceCfg {
 	UtDataHeader       header;
 	struct UtTraceCfg  *next;             /* Next trace config command        */
-	char               command[1];       /* Start of variable length section */
+	char               command[];         /* Start of variable length section */
 } UtTraceCfg;
 
 typedef struct UtDeferredConfigInfo {