[master] a1eba5840 avoid empty statement from VRBT macros

Nils Goroll nils.goroll at uplex.de
Mon Nov 5 17:47:08 UTC 2018


commit a1eba58403e8fba298a9ce8b5befaf78ddf3a241
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Nov 5 18:42:20 2018 +0100

    avoid empty statement from VRBT macros
    
    seen by sun cc as:
    
    "cache/cache_vrt_priv.c", line 54: syntax error:  empty declaration (E_EMPTY_DECLARATION)
    "cache/cache_vrt_priv.c", line 109: syntax error:  empty declaration (E_EMPTY_DECLARATION)

diff --git a/bin/varnishd/cache/cache_vrt_priv.c b/bin/varnishd/cache/cache_vrt_priv.c
index b76755e0e..531718e1d 100644
--- a/bin/varnishd/cache/cache_vrt_priv.c
+++ b/bin/varnishd/cache/cache_vrt_priv.c
@@ -49,7 +49,7 @@ struct vrt_privs cli_task_privs[1];
 
 static inline int vrt_priv_dyncmp(const struct vrt_priv *,
     const struct vrt_priv *);
-VRBT_PROTOTYPE(vrt_priv_tree, vrt_priv, entry, vrt_priv_dyncmp);
+VRBT_PROTOTYPE(vrt_priv_tree, vrt_priv, entry, vrt_priv_dyncmp)
 
 /*--------------------------------------------------------------------
  */
@@ -102,7 +102,7 @@ vrt_priv_dyncmp(const struct vrt_priv *vp1, const struct vrt_priv *vp2)
 	return (0);
 }
 
-VRBT_GENERATE(vrt_priv_tree, vrt_priv, entry, vrt_priv_dyncmp);
+VRBT_GENERATE(vrt_priv_tree, vrt_priv, entry, vrt_priv_dyncmp)
 
 static struct vmod_priv *
 vrt_priv_dynamic(struct ws *ws, struct vrt_privs *vps, uintptr_t vmod_id)


More information about the varnish-commit mailing list