samedi 27 août 2016

warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ using argv

I don't even know what is happening, I just started a new project and setup a basic cat just to make sure everything was working, and this happened.

#include "stdlib.h"
#include "stdio.h"

int main(int argc, char *argv) {
    printf("%s",argv[0]);
    return 0;
}

That's it, I reinstalled gcc, g++, and both multilibs. I really have no clue what to even think.

Aucun commentaire:

Enregistrer un commentaire