Mesa (master): driconf: Avoid empty macro resulting in empty initializer braces

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 2 18:52:48 UTC 2020


Module: Mesa
Branch: master
Commit: a5de2bc2296254340a09a0f83a98ed98d2786e38
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a5de2bc2296254340a09a0f83a98ed98d2786e38

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Wed Nov 18 18:16:10 2020 -0800

driconf: Avoid empty macro resulting in empty initializer braces

MSVC is unhappy with empty initializer braces while compiling C

Reviewed-by: Francisco Jerez <currojerez at riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7680>

---

 src/util/driconf.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/util/driconf.h b/src/util/driconf.h
index b09ca1f3a7d..130fb1f535b 100644
--- a/src/util/driconf.h
+++ b/src/util/driconf.h
@@ -241,22 +241,22 @@
 #define DRI_CONF_PP_CELSHADE(def) \
    DRI_CONF_OPT_E(pp_celshade, def, 0, 1, \
                   "A post-processing filter to cel-shade the output", \
-                  )
+                  { 0 } )
 
 #define DRI_CONF_PP_NORED(def) \
    DRI_CONF_OPT_E(pp_nored, def, 0, 1, \
                   "A post-processing filter to remove the red channel", \
-                  )
+                  { 0 } )
 
 #define DRI_CONF_PP_NOGREEN(def) \
    DRI_CONF_OPT_E(pp_nogreen, def, 0, 1, \
                   "A post-processing filter to remove the green channel", \
-                  )
+                  { 0 } )
 
 #define DRI_CONF_PP_NOBLUE(def) \
    DRI_CONF_OPT_E(pp_noblue, def, 0, 1, \
                   "A post-processing filter to remove the blue channel", \
-                  )
+                  { 0 } )
 
 #define DRI_CONF_PP_JIMENEZMLAA(def,min,max) \
    DRI_CONF_OPT_I(pp_jimenezmlaa, def, min, max, \



More information about the mesa-commit mailing list