user31741: I am writing a code for ARDUINO UNO in arduino 1.8.1 and the following error is coming
How to remove it?
C:\Users\Mahe\Documents\Arduino\sketch_mar09b\sketch_mar09b.ino: In function 'void updateState(byte)':
C:\Users\Mahe\Documents\Arduino\sketch_mar09b\sketch_mar09b.ino:243:60: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   DisplayInfo("RFID Scanner", "Starting up", HIGH, HIGH);


user13432: 
I am writing a code for ARDUINO UNO in arduino 1.8.1 and the following error is coming How to remove it?

C:\Users\Mahe\Documents\Arduino\sketch_mar09b\sketch_mar09b.ino:243:60: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   DisplayInfo("RFID Scanner", "Starting up", HIGH, HIGH);

To give a detailed answer the full prototype for DisplayInfo() is needed. The issue is that the literal strings are const char* and the function parameters are declared as char*. 
The correct way to fix this would be to update DisplayInfo() so that the parameter types are const char*. The dirty fix is to cast the parameters in the call.
   DisplayInfo((char*) "RFID Scanner", (char*) "Starting up", HIGH, HIGH);

But I would not recommend that.
Cheers!

31741: <p>I am writing a code for ARDUINO UNO in arduino 1.8.1 and the following error is coming
How to remove it?</p>

<p>C:\Users\Mahe\Documents\Arduino\sketch_mar09b\sketch_mar09b.ino: In function 'void updateState(byte)':</p>

<p>C:\Users\Mahe\Documents\Arduino\sketch_mar09b\sketch_mar09b.ino:243:60: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</p>

<pre><code>   DisplayInfo("RFID Scanner", "Starting up", HIGH, HIGH);
</code></pre>
 13432: <blockquote>
  <p>I am writing a code for ARDUINO UNO in arduino 1.8.1 and the following error is coming How to remove it?</p>
</blockquote>

<pre><code>C:\Users\Mahe\Documents\Arduino\sketch_mar09b\sketch_mar09b.ino:243:60: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   DisplayInfo("RFID Scanner", "Starting up", HIGH, HIGH);
</code></pre>

<p>To give a detailed answer the full prototype for DisplayInfo() is needed. The issue is that the literal strings are <code>const char*</code> and the function parameters are declared as <code>char*</code>. </p>

<p>The correct way to fix this would be to update DisplayInfo() so that the parameter types are <code>const char*</code>. The dirty fix is to cast the parameters in the call.</p>

<pre><code>   DisplayInfo((char*) "RFID Scanner", (char*) "Starting up", HIGH, HIGH);
</code></pre>

<p>But I would not recommend that.</p>

<p>Cheers!</p>
