small s_lock.c bug

Started by Joe Conwayabout 24 years ago2 messagespatches
Jump to latest
#1Joe Conway
mail@joeconway.com

This morning I noticed the following warning:

gcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -c -o s_lock.o s_lock.c -MMD
s_lock.c:172:82: warning: multi-line string literals are deprecated

It seems to have been introduced here:
http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/lmgr/s_lock.c.diff?r1=1.5&r2=1.6

Attached is a small patch.

Joe

Attachments:

lmgr_s_lock.patchtext/plain; name=lmgr_s_lock.patchDownload+2-2
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Joe Conway (#1)
Re: small s_lock.c bug

Joe Conway <mail@joeconway.com> writes:

This morning I noticed the following warning:
gcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include -c -o s_lock.o s_lock.c -MMD
s_lock.c:172:82: warning: multi-line string literals are deprecated

Attached is a small patch.

Applied. Thanks.

regards, tom lane