mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
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.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# makefile for libpng using MSYS/gcc (shared, static library)
|
||||
# Copyright (C) 2019-2020 Cosmin Truta
|
||||
# Copyright (C) 2019-2022 Cosmin Truta
|
||||
# Copyright (C) 2012 Glenn Randers-Pehrson and Christopher M. Wheeler
|
||||
#
|
||||
# Portions taken from makefile.linux and makefile.gcc:
|
||||
@@ -44,8 +44,8 @@ MKDIR_P=mkdir -p
|
||||
LN_SF=ln -sf
|
||||
|
||||
CPPFLAGS = # -DPNG_DEBUG=5
|
||||
CFLAGS = -W -Wall -O2 # -g
|
||||
LDFLAGS =
|
||||
CFLAGS = -O2 -Wall -Wextra -Wundef # -g
|
||||
LDFLAGS = # -g
|
||||
LIBS = -lz -lm
|
||||
|
||||
# File extensions
|
||||
|
||||
Reference in New Issue
Block a user