C1861: Illegal use of type 'void'

[WARNING]

Description

The compiler has detected an illegal usage of the void type. The compiler accepts this because of historical reasons. Some other vendor compilers may not accept this at all, so this may cause portability problems.

Example
  int foo(void buf[256]) { // warning here

  
    ...

  
  }

  
Tips

Correct your code. E.g. replace in the above example the argument with 'void *buf'.