Skip to content

hdr_histogram.c: clang 23 -Wincompatible-pointer-types will be error insteadof warning(clang 19 is warning) #66580

Description

@navegador5

Version

26.2.

Platform

Microsoft Windows NT 10.0.26200.0 x64

Subsystem

No response

What steps will reproduce the bug?

incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
[\node260200\deps\histogram\histogram.vcxproj]
out\build\x64-release\src
out\build\x64-release\src\hdr_histogram.c 149

How often does it reproduce? Is there a required condition?

always

What is the expected behavior? Why is that the expected behavior?

no error

What do you see instead?

incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *'

Additional information

uint32_t leading_zero = 0; => unsigned long to MATCH _BitScanReverse(64) requirements

Activity

  1. navegador5 commented on Oct 7, 2026

    @navegador5
    Author
    I need to  use clang23 to `compile` nodejs  in such secarino: 
     we need expose all  winrt apis  in nodejs,   but the intrin.h of MSVC  conflict with LLVM19/clang19:[
            C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\emmintrin.h(325,16): error: redefinition of '__m128i' as different kind of symbol
         C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\x64\lib\clang\19\include\emmintrin.h(4299,5): note: expanded from macro '_mm_shuffle_epi32'
    ]   .  
    the simplest way to solve this is using clang23.
    
    
    
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions