Skip to content
  • Rolf Eike Beer's avatar
    FindThreads: fix printing a pointer value in test code · 66db914a
    Rolf Eike Beer authored and Brad King's avatar Brad King committed
    This causes a warning in C mode, and entirely fails in C++ mode:
    
    CMake/Modules/CheckForPthreads.c: In function ‘runner’:
    CMake/Modules/CheckForPthreads.c:34:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
          printf("%d CC: %d\n", (int)args, cc);
                                ^
    Use %p to print out a pointer value, which will not cause any problems.
    66db914a