11 Replies Latest reply on Feb 13, 2015 1:41 AM by dipak

    printf got warning "incompatible argument"

    aokomoriuta
      __kernel void PrintfWarning()
      {
          long i = get_global_id(0);
      
          printf("%i\n", i);
      }
      

      When I compile above code, compiler said:

      line 5: warning: argument
                of type "const __constant char *" is incompatible with parameter of
                type "__constant char *"
            printf("%i\n", i);
                   ^ 
      

      How can I fix this?

      I don't have to fix but just ignore?

      • Windows7 x64 pro SP1
      • Radeon HD 6950 (8.980.0.0)
      • KennelAnalyzer ver 1.12.1288