solbu / hldig

hl://Dig is a fork of ht://Dig, a web indexing and searching system for a small domain or intranet
https://solbu.github.io/hldig/
Other
18 stars 21 forks source link

htpurge.cc:193:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] #5

Closed andy5995 closed 6 years ago

andy5995 commented 7 years ago

Anyone interested in doing a PR to fix this?

g++ -DHAVE_CONFIG_H -I. -I. -I../include -DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\" -I../include -I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db -DSENDMAIL=\"/usr/sbin/sendmail\"     -g -O2 -Wall -fno-rtti -fno-exceptions -c -o htstat.o `test -f 'htstat.cc' || echo './'`htstat.cc
htpurge.cc: In function ‘Dictionary* purgeDocs(Dictionary*)’:
htpurge.cc:193:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
       reportError("Database is empty!");

Feel free to join the chat room.