From 31ab7577c2c9110dde912aff2dd773280db74833 Mon Sep 17 00:00:00 2001
From: Alina Lenk <alina.v.lenk@gmail.com>
Date: Sun, 13 Feb 2022 18:21:09 +0100
Subject: [PATCH 3/3] CodingStyle: add information about C99 compound literals

See osdn #43826
---
 doc/CodingStyle | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/doc/CodingStyle b/doc/CodingStyle
index 56823ef7d0..77f6d2b717 100644
--- a/doc/CodingStyle
+++ b/doc/CodingStyle
@@ -25,6 +25,9 @@ but wars are fought over the silliest things ...
   (unless you are using C99 dynamic arrays and you need to check the size
    of the array before you declare it).
 
+- C99 Compound Literals are allowed in C code, and are encouraged for struct
+  and union values that are only used once.
+
 - Where variable is logically boolean, 'bool' type should be used even in
   C code. To make sure that the type is defined, include utility/support.h.
   In C code boolean values are uppercase macros 'TRUE' and 'FALSE'.
-- 
2.17.1