diff options
author | Cosmin Truta <ctruta@gmail.com> | 2022-09-14 21:18:20 +0300 |
---|---|---|
committer | Cosmin Truta <ctruta@gmail.com> | 2022-09-14 21:18:20 +0300 |
commit | c64655d058b1b8156af45af0f6f4cdf95cf303c1 (patch) | |
tree | 2b75e9a092a6151a8647b9633e2fcbd958a8b536 /scripts/makefile.clang | |
parent | 8b7b99c1db32e8f2266b310f64bb61486aa4c52e (diff) | |
download | libpng-c64655d058b1b8156af45af0f6f4cdf95cf303c1.tar.gz |
scripts: Set the compiler warning options to "-Wall -Wextra -Wundef"
Considering that "-Wextra" is a more descriptive alternative to "-W",
and that "-Wundef" is a highly useful warning option that has been
available in ancient versions of gcc (version 2.x), we replace all
occurrences of "-W -Wall" with "-Wall -Wextra -Wundef".
Also clean up the makefiles.
Diffstat (limited to 'scripts/makefile.clang')
-rw-r--r-- | scripts/makefile.clang | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/makefile.clang b/scripts/makefile.clang index 583f6ce17..fe0544a2b 100644 --- a/scripts/makefile.clang +++ b/scripts/makefile.clang @@ -1,6 +1,6 @@ # makefile for libpng using clang (generic, static library) +# Copyright (C) 2000, 2014, 2019-2022 Cosmin Truta # Copyright (C) 2008, 2014 Glenn Randers-Pehrson -# Copyright (C) 2000, 2014, 2019 Cosmin Truta # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. # # This code is released under the libpng license. @@ -23,8 +23,8 @@ WARNMORE = -Wwrite-strings -Wpointer-arith -Wshadow \ -Wmissing-declarations -Wtraditional -Wcast-align \ -Wstrict-prototypes -Wmissing-prototypes # -Wconversion CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5 -CFLAGS = -W -Wall -O2 # $(WARNMORE) -g -LDFLAGS = -L$(ZLIBLIB) +CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g +LDFLAGS = -L$(ZLIBLIB) # -g LIBS = -lz -lm # File extensions |