Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
2575b191
Commit
2575b191
authored
9 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
build: Add separate flags for checkheaders targets
This allows filtering out some warning noise.
parent
984e50e7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common.mak
+1
-0
1 addition, 0 deletions
common.mak
configure
+9
-0
9 additions, 0 deletions
configure
with
10 additions
and
0 deletions
common.mak
+
1
−
0
View file @
2575b191
...
...
@@ -33,6 +33,7 @@ ALLHEADERS := $(subst $(SRC_DIR)/,$(SUBDIR),$(wildcard $(SRC_DIR)/*.h $(SRC_DIR)
SKIPHEADERS
+=
$(
ARCH_HEADERS:%
=
$(
ARCH
)
/%
)
$(
SKIPHEADERS-
)
SKIPHEADERS
:=
$(
SKIPHEADERS:%
=
$(
SUBDIR
)
%
)
HOBJS
=
$(
filter-out
$(
SKIPHEADERS:.h
=
.h.o
)
,
$(
ALLHEADERS:.h
=
.h.o
))
$(HOBJS)
:
CCFLAGS += $(CFLAGS_HEADERS)
checkheaders
:
$(HOBJS)
.SECONDARY
:
$(HOBJS:.o=.c)
...
...
This diff is collapsed.
Click to expand it.
configure
+
9
−
0
View file @
2575b191
...
...
@@ -4851,6 +4851,14 @@ check_disable_warning -Wno-switch
check_disable_warning
-Wno-format-zero-length
check_disable_warning
-Wno-pointer-sign
check_disable_warning_headers
(){
warning_flag
=
-W
${
1
#-Wno-
}
test_cflags
$warning_flag
&&
append cflags_headers
$1
}
check_disable_warning_headers
-Wno-deprecated-declarations
check_disable_warning_headers
-Wno-unused-variable
# add some linker flags
check_ldflags
-Wl
,--warn-common
check_ldflags
-Wl
,-rpath-link
=
libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample
...
...
@@ -5315,6 +5323,7 @@ TARGET_EXEC=$target_exec $target_exec_args
TARGET_PATH=
$target_path
TARGET_SAMPLES=
${
target_samples
:-
\
$(
SAMPLES
)
}
CFLAGS-avplay=
$sdl_cflags
CFLAGS_HEADERS=
$cflags_headers
ZLIB=
$(
$ldflags_filter
-lz
)
LIB_INSTALL_EXTRA_CMD=
$LIB_INSTALL_EXTRA_CMD
EXTRALIBS=
$extralibs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment