how to add -Wno-deprecated to make command CFLAG variable to eliminate deprecated warnings

57 Views Asked by At

Tried:

make all CFLAGS += -D-Wno-deprecated

yields:

make: *** empty variable name. Stop.

1

There are 1 best solutions below

1
Eric Postpischil On BEST ANSWER

Do not use spaces around += and do not use -D: make all CFLAGS+=-Wno-deprecated.