[How to] Install qmail-remove on CentOS 7
If you see below error while compile qmail-remove.c :
[root@barracuda qmail-remove-0.95]# gcc -O2 -Wall -o qmail-remove qmail-remove.c
qmail-remove.c: In function ‘main’:
qmail-remove.c:266:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
fprintf(stderr,"Error parsing the date specified at: [ %s ] col %d [ %s ] ]\n", p, p - optarg, optarg);
^
Then… Please do the following…
Open qmail-remove.c file on line 266. Replace this line :
fprintf(stderr,"Error parsing the date specified at: [ %s ] col %d [ %s ] ]\n", p, p - optarg, optarg);
to :
fprintf(stderr,"Error parsing the date specified at: [ %s ] col %d [ %s ] ]\n", p,(int)(p - optarg), optarg);
