warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

Hi im doing that project but im having that error :

warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
How can i solve it ?

is in line 5 :

Servo myservo; //declares servo
Password password = Password( "0000" ); //password to unlock, can be changed

More details about project
http://www.instructables.com/id/Arduino-door-lock-with-password/

#include <Password.h> //http://playground.arduino.cc/uploads/Code/Password.zip //tells to use password library

#include <Keypad.h> //Arduino Playground - HomePage  //tells to use keypad library
#include <Servo.h> //tells to use servo library

Servo myservo; //declares servo
Password password = Password( "0000" ); //password to unlock, can be changed

const byte ROWS = 4; // Four rows
const byte COLS = 4; // columns
// Define the Keymap
char keys[ROWS][COLS] = {
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','#'}
};
// Connect keypad ROW0, ROW1, ROW2 and ROW3 to these Arduino pins.
byte rowPins[ROWS] = { 9, 8, 7, 6 };// Connect keypad COL0, COL1 and COL2 to these Arduino pins.
byte colPins[COLS] = { 5, 4, 3 };

// Create the Keypad
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

void setup(){
  Serial.begin(9600);
  Serial.write(254);
  Serial.write(0x01);
  delay(200);
  pinMode(11, OUTPUT);  //green light
  pinMode(12, OUTPUT);  //red light
  myservo.attach(13); //servo on digital pin 9 //servo
  keypad.addEventListener(keypadEvent); //add an event listener for this keypad
  }

void loop(){
  keypad.getKey();
  myservo.write(0);
  }
  //take care of some special events
  void keypadEvent(KeypadEvent eKey){
  switch (keypad.getState()){
  case PRESSED:
 
  Serial.print("Enter:");
  Serial.println(eKey);
  delay(10);
 
  Serial.write(254);
 
  switch (eKey){
    case '*': checkPassword(); delay(1); break;
   
    case '#': password.reset(); delay(1); break;
   
    default: password.append(eKey); delay(1);
}
}
}
void checkPassword(){
 
if (password.evaluate()){  //if password is right open
   
    Serial.println("Accepted");
    Serial.write(254);delay(10);
    //Add code to run if it works
    myservo.write(150); //deg
   
        digitalWrite(11, HIGH);//turn on
    delay(5000); //wait 5 seconds
    digitalWrite(11, LOW);// turn off
   
   
}else{
    Serial.println("Denied"); //if passwords wrong keep locked
    Serial.write(254);delay(10);
    //add code to run if it did not work
    myservo.write(0);
    digitalWrite(12, HIGH); //turn on
    delay(500); //wait 5 seconds
    digitalWrite(12, LOW);//turn off
   
}
}

but im having that error

That is NOT an error. It CLEARLY says "warning".

But my project isnt working ...

(deleted)

(deleted)

To get rid of that warning, change the "char *" declaration to "const char *". From the looks of the code the declaration of "Password" is the problem.

That warning won't cause the code to fail so there must be a mistake elsewhere.

I have get this message when trying to upload Lynxmotion Hexapod code to botboarduino. It hasn't caused any trouble with my boy or my IDE so I just ignore it.