Mega+Sim Shield

Mega ADK +zigbee S2 + Arduino Sim Shield
I followed these instructions for setting my sim shield and at mega.
https://www.arduino.cc/en/Guide/GSMShieldLeonardoMega I also have connected zigbee at tx0,rx0.
When i include GSM.h i have some warnings and as a result i can’t send any sms.As you ll see at my code i also use a rtc ds1307 at sda scl atmega’s pins.

#include <GSM.h>
#include <XBee.h>
#include <TimeLib.h>
#include <Wire.h>
#include <DS1307RTC.h>
#include <Time.h>
#include <TimeAlarms.h>

#define PINNUMBER "7540"
XBee xbee = XBee();
GSM gsmAccess;
GSM_SMS sms;
char remoteNum[] = "xxxxxxxxx"; // telephone number to send sms
void setup() {

  Serial.begin(9600);
  xbee.begin(Serial);
  Wire.begin();
  setSyncProvider(RTC.get);   // the function to get the time from the RTC
  if (timeStatus() != timeSet) {
    Serial.println("Unable to sync with the RTC");
  }
  else {
    Serial.println("RTC has set the system time");
  }

  //  // connection state
  boolean notConnected = true;

  // Start GSM shield
  // If your SIM has PIN, pass it as a parameter of begin() in quotes
  while (notConnected) {
    if (gsmAccess.begin(PINNUMBER) == GSM_READY) {
      notConnected = false;
    } else {
      Serial.println("Not connected");
      delay(1000);
    }
  }

  Serial.println("GSM initialized");
  sendSMS();
}

void loop() {


}
void sendSMS() {
  sms.beginSMS(remoteNum);
  sms.print("HELLO");
  sms.endSMS();
  Serial.println("\nCOMPLETE!\n");
}

warning: ‘typedef’ was ignored in this declaration [enabled by default]
typedef enum GSM3GSMBand {UNDEFINED, EGSM_MODE, DCS_MODE, PCS_MODE, EGSM_DCS_MODE, GSM850_PCS_MODE, GSM850_EGSM_DCS_PCS_MODE};

warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
if (gsmAccess.begin(PINNUMBER) == GSM_READY) {}

I have to make some modifications to library in order to work this?Any suggestions?

I have to make some modifications to library in order to work this?

No. Those are warnings. They can be ignored. Of course, the Arduino team SHOULD fix them.

The GSM library is ONLY for the Arduino GSM shield. Is that what you have?

yes i have the Arduino Gsm Shield V2

thanks for your response.