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
|
||||
# Copyright (C) 2020 Cosmin Truta
|
||||
# Copyright (C) 2020-2022 Cosmin Truta
|
||||
# Copyright (C) 2002, 2006, 2014 Glenn Randers-Pehrson
|
||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||
#
|
||||
@@ -32,9 +32,9 @@ CC = cc
|
||||
CPP = $(CC) -E
|
||||
LD = $(CC)
|
||||
AR_RC = ar rc
|
||||
RANLIB = ranlib
|
||||
MKDIR_P = mkdir
|
||||
LN_SF = ln -sf
|
||||
RANLIB = ranlib
|
||||
CP = cp
|
||||
MV_F = mv -f
|
||||
RM_F = rm -f
|
||||
@@ -44,7 +44,7 @@ DFNFLAGS = # DFNFLAGS contains -D options to use in the libpng build
|
||||
DFA_EXTRA = # extra files that can be used to control configuration
|
||||
CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||
CFLAGS = -O # -g
|
||||
LDFLAGS = -L$(ZLIBLIB)
|
||||
LDFLAGS = -L$(ZLIBLIB) # -g
|
||||
LIBS = -lz -lm
|
||||
|
||||
# Pre-built configuration
|
||||
|
||||
Reference in New Issue
Block a user