mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #4376] [MERGED] gcov: use no-op functions if not enabled #5139
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#5139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/4376
Author: @kmk3
Created: 6/27/2021
Status: ✅ Merged
Merged: 6/28/2021
Merged by: @netblue30
Base:
master← Head:gcov-add-nop-functions📝 Commits (2)
98d223dgcov: fix indentation5106b2egcov: use no-op functions if not enabled📊 Changes
15 files changed (+64 additions, -110 deletions)
View changed files
📝
src/firejail/appimage.c(+2 -6)📝
src/firejail/chroot.c(+2 -6)📝
src/firejail/fs.c(+2 -6)📝
src/firejail/fs_mkdir.c(+3 -6)📝
src/firejail/ls.c(+6 -10)📝
src/firejail/main.c(+3 -6)📝
src/firejail/profile.c(+2 -6)📝
src/firejail/rlimit.c(+14 -16)📝
src/firejail/sandbox.c(+3 -8)📝
src/firejail/util.c(+11 -14)📝
src/firemon/interface.c(+3 -6)📝
src/firemon/netstats.c(+3 -7)📝
src/firemon/procevent.c(+1 -6)📝
src/firemon/top.c(+3 -7)📝
src/include/gcov_wrapper.h(+6 -0)📄 Description
Instead of wrapping every gcov function call in an ifdef.
Note: The usage of
((void)0)is based on section 7.2 of the C99standard (N1256)[1] [2]:
See also assert.h(0p) from POSIX.1-2017[3].
Note: This is a continuation of commit
b408b20c7("gcov: fix buildfailure with gcc 11.1.0") / PR #4373.
[1] http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf
[2] https://port70.net/~nsz/c/c99/n1256.html#7.2
[3] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/assert.h.html
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.