Lorsque j'exécute ce bit de code via GCC, j'obtiens cet avertissement sur la ligne où je place les informations dans SDL_GetVideoInfo().initialisation élimine les qualificatifs ... sdl warning
avertissement: initialisation défausse qualifiés de pointeur type de cible
int main(int argc, char** argv) {
SDL_Init(SDL_INIT_EVERYTHING);
SDL_VideoInfo* info = SDL_GetVideoInfo();
int SCREEN_WIDTH = info->current_w;
int SCREEN_HEIGHT = info->current_h;
printf("hardware acceleration? %s\n", info->hw_available == 1 ? "yes" : "no");
printf("memory available in kilobytes: %d\n", info->video_mem);
SDL_Quit();
return 0;
}
Est-ce que quelqu'un sait comment je peux changer le code que je peux contourner cet avertissement?