Author: sbruno
Date: Sat Jan 12 18:30:52 2013
New Revision: 245339
URL: http://svnweb.freebsd.org/changeset/base/245339

Log:
  Quiesce a couple of clang warnings
  
  Submitted by: hiren panchasara <[email protected]>
  Obtained from:        Yahoo! Inc

Modified:
  head/sys/dev/hwpmc/hwpmc_mod.c
  head/sys/dev/hwpmc/hwpmc_soft.c

Modified: head/sys/dev/hwpmc/hwpmc_mod.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_mod.c      Sat Jan 12 18:25:48 2013        
(r245338)
+++ head/sys/dev/hwpmc/hwpmc_mod.c      Sat Jan 12 18:30:52 2013        
(r245339)
@@ -3022,7 +3022,7 @@ pmc_syscall_handler(struct thread *td, v
                }
 
                nevent = 0;
-               for (ev = PMC_EV_SOFT_FIRST; ev <= PMC_EV_SOFT_LAST; ev++) {
+               for (ev = PMC_EV_SOFT_FIRST; (int)ev <= PMC_EV_SOFT_LAST; ev++) 
{
                        ps = pmc_soft_ev_acquire(ev);
                        if (ps == NULL)
                                continue;

Modified: head/sys/dev/hwpmc/hwpmc_soft.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_soft.c     Sat Jan 12 18:25:48 2013        
(r245338)
+++ head/sys/dev/hwpmc/hwpmc_soft.c     Sat Jan 12 18:30:52 2013        
(r245339)
@@ -116,7 +116,7 @@ soft_allocate_pmc(int cpu, int ri, struc
                return (EPERM);
 
        ev = pm->pm_event;
-       if (ev < PMC_EV_SOFT_FIRST || ev > PMC_EV_SOFT_LAST)
+       if ((int)ev < PMC_EV_SOFT_FIRST || (int)ev > PMC_EV_SOFT_LAST)
                return (EINVAL);
 
        /* Check if event is registered. */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to