aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilip Tricca <philip.b.tricca@intel.com>2017-12-29 12:53:18 -0800
committerPhilip Tricca <philip.b.tricca@intel.com>2018-01-07 21:22:10 -0500
commitee3d08a2b865221e439b68e80884174dd4d6091f (patch)
tree5a9b38916b4325ab80dc4ddcda7cb180a2f67a31 /include
parent5c1c829c7081fdb9657dc9c21c32a56b75ac7c11 (diff)
downloadtpm2-tss-ee3d08a2b865221e439b68e80884174dd4d6091f.tar.gz
Define TPMS_EMPTY structure to have a BYTE array with a single member.
If define as an array with 0 members this causes pedantic C compilers to complain of the invalid 0 sized array (disallowed by c99). Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/sapi/tss2_tpm2_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sapi/tss2_tpm2_types.h b/include/sapi/tss2_tpm2_types.h
index dfa6c36b..e7ab3352 100644
--- a/include/sapi/tss2_tpm2_types.h
+++ b/include/sapi/tss2_tpm2_types.h
@@ -1185,7 +1185,7 @@ typedef TPM2_ST TPMI_ST_COMMAND_TAG;
/* Table 68 Definition of TPMS_EMPTY Structure <INOUT> */
typedef struct {
- BYTE empty[0]; /* a structure with no member */
+ BYTE empty[1]; /* a structure with no member */
} TPMS_EMPTY;
/* Table 69 Definition of TPMS_ALGORITHM_DESCRIPTION Structure <OUT> */