Skip to content

Build error with clang-cl #310

Description

@egorpugin

1.4.6

librhash/rhash.c(1089,27): error : incompatible pointer types passing 'volatile unsigned int *' to parameter of type 'volatile long *' [-Wincompatible-pointer-types]
   1089 |                 atomic_compare_and_swap(&ctx->state, STATE_ACTIVE, STATE_STOPPED);
        |                                         ^~~~~~~~~~~
  librhash\util.h(25,82): note: expanded from macro 'atomic_compare_and_swap'
     25 | # define atomic_compare_and_swap(ptr, oldval, newval) InterlockedCompareExchange(ptr, newval, oldval)
        |                                                                                  ^~~
  C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um\winnt.h(3242,50): note: passing argument to parameter 'Destination' here
   3242 |     _Inout_ _Interlocked_operand_ LONG volatile *Destination,
        |                                                  ^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions