[FriBidi-commit] fribidi2/lib debug.h,1.8,1.9 run.h,1.7,1.8

Behdad Esfahbod behdad at freedesktop.org
Sun Jan 22 02:12:19 PST 2006


Update of /cvs/fribidi/fribidi2/lib
In directory gabe:/tmp/cvs-serv6171/lib

Modified Files:
	debug.h run.h 
Log Message:
Add extra braces to shut gcc warnings up.


Index: debug.h
===================================================================
RCS file: /cvs/fribidi/fribidi2/lib/debug.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- debug.h	3 Nov 2005 01:39:01 -0000	1.8
+++ debug.h	22 Jan 2006 10:12:17 -0000	1.9
@@ -75,20 +75,21 @@
 #ifndef DBG
 # define DBG(s) \
 	FRIBIDI_BEGIN_STMT \
-	if (fribidi_debug_status()) MSG(FRIBIDI ": " s "\n"); \
+	if (fribidi_debug_status()) { MSG(FRIBIDI ": " s "\n"); } \
 	FRIBIDI_END_STMT
 # define DBG2(s, t) \
 	FRIBIDI_BEGIN_STMT \
-	if (fribidi_debug_status()) MSG2(FRIBIDI ": " s "\n", t); \
+	if (fribidi_debug_status()) { MSG2(FRIBIDI ": " s "\n", t); } \
 	FRIBIDI_END_STMT
 #endif /* !DBG */
 
 #ifndef fribidi_assert
 # define fribidi_assert(cond) \
 	FRIBIDI_BEGIN_STMT \
-	if (!(cond)) \
+	if (!(cond)) { \
 		DBG(__FILE__ ":" STRINGIZE(__LINE__) ": " \
 		    "assertion failed (" STRINGIZE(cond) ")"); \
+	} \
 	FRIBIDI_END_STMT
 #endif /* !fribidi_assert */
 

Index: run.h
===================================================================
RCS file: /cvs/fribidi/fribidi2/lib/run.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- run.h	21 Jun 2004 18:49:23 -0000	1.7
+++ run.h	22 Jan 2006 10:12:17 -0000	1.8
@@ -126,8 +126,9 @@
 
 #define move_node_before(x, list) \
 	FRIBIDI_BEGIN_STMT \
-	if ((x)->prev) \
+	if ((x)->prev) { \
 	  delete_node(x); \
+	} \
 	insert_node_before((x), (list)); \
 	FRIBIDI_END_STMT
 



More information about the fribidi-commit mailing list