Changeset 11750f1 in rtems-libbsd


Ignore:
Timestamp:
Oct 24, 2016, 11:14:35 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
e562e3bdf33f5de01ede936d5621ab7de88f74d3, 6dc77fcbf2297ca60f4a47ec1ff4f15fdba10911
Children:
b86b097
Parents:
2956924
git-author:
Sebastian Huber <sebastian.huber@…> (10/24/16 11:14:35)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/10/17 08:53:33)
Message:

Fix warnings in <sys/refcount.h>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/sys/refcount.h

    r2956924 r11750f1  
    5151
    5252        KASSERT(*count < UINT_MAX, ("refcount %p overflowed", count));
    53         atomic_add_acq_int(count, 1);   
     53        atomic_add_acq_int((volatile int *)count, 1);   
    5454}
    5555
     
    6060
    6161        /* XXX: Should this have a rel membar? */
    62         old = atomic_fetchadd_int(count, -1);
     62        old = atomic_fetchadd_int((volatile int *)count, -1);
    6363        KASSERT(old > 0, ("negative refcount %p", count));
    6464        return (old == 1);
Note: See TracChangeset for help on using the changeset viewer.