[MPlayer-cvslog] r28966 - trunk/cpuinfo.c

diego subversion at mplayerhq.hu
Sun Mar 15 21:34:03 CET 2009


Author: diego
Date: Sun Mar 15 21:34:02 2009
New Revision: 28966

Log:
Add some parentheses to silence the warnings:
cpuinfo.c:293: warning: suggest parentheses around && within ||
cpuinfo.c:297: warning: suggest parentheses around && within ||

Modified:
   trunk/cpuinfo.c

Modified: trunk/cpuinfo.c
==============================================================================
--- trunk/cpuinfo.c	Sun Mar 15 21:02:45 2009	(r28965)
+++ trunk/cpuinfo.c	Sun Mar 15 21:34:02 2009	(r28966)
@@ -290,11 +290,11 @@ main(void)
        have to check the family, model and stepping instead. */
     if (strstr(idstr, "AMD") &&
         family == 5 &&
-        (model >= 9 || model == 8 && stepping >= 8))
+        (model >= 9 || (model == 8 && stepping >= 8)))
       printf(" %s", "k6_mtrr");
     /* similar for cyrix_arr. */
     if (strstr(idstr, "Cyrix") &&
-        (family == 5 && model < 4 || family == 6))
+        (family == 5 && (model < 4 || family == 6)))
       printf(" %s", "cyrix_arr");
     /* as well as centaur_mcr. */
     if (strstr(idstr, "Centaur") &&



More information about the MPlayer-cvslog mailing list