AnsweredAssumed Answered

printf got warning "incompatible argument"

Question asked by aokomoriuta on Aug 5, 2012
Latest reply on Feb 13, 2015 by dipak
__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