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

htnotify.cc:332:66: warning: ISO C++ forbids converting a string constant to ‘char*’ #4

Closed andy5995 closed 7 years ago

andy5995 commented 7 years ago

Anyone interested in doing a PR to fix this?

https://github.com/andy5995/htdig/blob/daeaf867f43c4988559bcc6d737eaa357899738b/httools/htnotify.cc

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 htload.o `test -f 'htload.cc' || echo './'`htload.cc
htnotify.cc: In function ‘void htnotify(DocumentRef&)’:
htnotify.cc:332:66: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
      add_notification(date, email, ref.DocURL(), "Malformed Date");

Feel free to join the chat room.