Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Resolve complation issues with -fno-common (default from gcc-10) #1017

Open
wants to merge 508 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
508 commits
Select commit Hold shift + click to select a range
1061bd7
Change option '-m' to '-M' for consistency of cli
Nudin Sep 16, 2020
f3b4e24
Drop unused variable
cgzones Sep 11, 2020
f6b0efd
Convert short version option to capital V
cgzones Sep 17, 2020
dd6500c
Sort option in help message
cgzones Sep 17, 2020
f4602f7
Add some default compiler warnings
cgzones Sep 8, 2020
7107d1d
Refactor __attribute__ usage
cgzones Sep 9, 2020
c3952e7
Use strict function prototypes
cgzones Sep 8, 2020
b85a314
Avoid checking of undefined macros
cgzones Sep 8, 2020
e719a85
Mark noreturn functions
cgzones Sep 8, 2020
475f729
Resolve unused variable on FreeBSD
cgzones Sep 8, 2020
efb971f
Fail travis CI on compiler warnings
cgzones Sep 8, 2020
5ea13e7
Add format attribute
cgzones Sep 8, 2020
5432862
htop crashes on Solaris 11.4 due to missing ZFS ARC kstats
Sep 18, 2020
2c933f2
htop shows no used memory in Solaris zone
Sep 18, 2020
eb260af
Fix memory leak on cgroup read failure
cgzones Sep 21, 2020
e0e5997
Fix minor regression in number highlighting
BenBE Sep 20, 2020
f9966b5
Use checked allocation wrappers
cgzones Sep 21, 2020
6b11738
Avoid arithmetic on booleans
cgzones Sep 23, 2020
2565dd3
Drop dead code after break
cgzones Sep 17, 2020
7844e06
Document field M_SWAP in man page
Nudin Sep 17, 2020
8325774
Document M_PSS and M_PSSWP in man page
Nudin Sep 17, 2020
c1b5201
Consistent wording/formatting of field descriptions
Nudin Sep 18, 2020
d2b3a7a
Drop dead process fields
cgzones Sep 18, 2020
f805093
align cpu id to right
eworm-de Sep 1, 2020
47e2cef
Update battery API to use NAN on error
BenBE Sep 7, 2020
29ec115
Update IO rate display to use NAN on error
BenBE Sep 7, 2020
d0d3deb
Properly query sysconf settting and use NAN if unavailable
BenBE Sep 7, 2020
ebcf924
Use threshold for display of guest/steal/irq meters
BenBE Sep 7, 2020
3c65d78
Update CPU freq display to use NAN on error
BenBE Sep 7, 2020
321960b
Update delay accounting to use NAN on error
BenBE Sep 18, 2020
ba0fca1
Add -Wfloat-equal to default build flags
BenBE Sep 18, 2020
7ecea3d
Use return value of CLAMP function
BenBE Sep 21, 2020
5233817
Avoid unsigned integer overflow
cgzones Sep 24, 2020
f4bb502
show selected command wrapped in a separate window
ryenus Aug 3, 2017
005c4d1
Make --enable-hwloc and --enable-linux-affinity mutual exclusive
cgzones Sep 8, 2020
594409f
Add DeepCode inline suppression
cgzones Sep 24, 2020
f4e1f46
Add DeepCode inline suppression
cgzones Sep 24, 2020
edf1b10
Read CPU frequency from sysfs by default
cgzones Sep 22, 2020
ce0fd5f
Drop unused macros
cgzones Sep 23, 2020
4296e74
Include prototype in Battery implementation
cgzones Sep 23, 2020
4a1f3fc
Drop unnecessary usage of comma operator
cgzones Sep 23, 2020
cd1ba14
Avoid bad function cast warning
cgzones Sep 23, 2020
6a03cd2
Avoid warning about unreachable break statement
cgzones Sep 23, 2020
18b1e9f
Do not drop qualifier in cast
cgzones Sep 23, 2020
dfa40ad
Linux: consider the ZFS ARC to be cache.
multiplexd Sep 24, 2020
4e282eb
Add -Wmissing-prototypes compiler warning
cgzones Sep 25, 2020
400178a
Merge branch 'arc-is-not-cache' of https://github.com/multiplexd/htop…
natoscott Sep 28, 2020
8c9bd20
Merge pull request #181 from cgzones/missing_prototypes
natoscott Sep 28, 2020
6191336
Merge pull request #116 from cgzones/valgrind
natoscott Sep 28, 2020
e75077a
Merge pull request #107 from cgzones/hwlock_linuxaffinity
natoscott Sep 28, 2020
d22f657
CPUMeter: refactor common CPU meter rendering code.
multiplexd Sep 24, 2020
491bf98
Add missing 4-column CPU meters to non-Linux platforms.
multiplexd Sep 24, 2020
9ee7256
CPUMeter: add octuple-column CPU meters.
multiplexd Sep 24, 2020
214c742
command screen: fill current line when scanning
ryenus Sep 25, 2020
8439491
Drop redundant casts to the same type
cgzones Sep 28, 2020
6db2d52
Covert Meter attributes to file-local constant arrays
cgzones Sep 28, 2020
7ae967a
Drop redundant return statements
cgzones Sep 28, 2020
241e4b3
Drop redundant declarations
cgzones Sep 28, 2020
8b55113
Reimplement xAsnprintf and xSnprintf as type-safe functions
BenBE Sep 18, 2020
736c496
Cleanse xStrdup mess
BenBE Sep 18, 2020
dac1e05
Fix FreeBSD compile issue
BenBE Sep 18, 2020
e1c9687
Sort headers/includes
BenBE Sep 18, 2020
ab3171d
Process.{h,c}: Use integer types that are more portable
mfwitten Sep 29, 2020
2cde4a7
Enable NULL pointer checks via compiler if supported
BenBE Sep 18, 2020
816734e
Add screen shot of htop to readme
nzbart Oct 1, 2020
3afa5df
minor typo in Vector.c
Ckath Oct 2, 2020
8efc885
InfoScreen: update content on resize
cgzones Sep 29, 2020
4b14ab9
Adjust colors
cgzones Sep 28, 2020
6f38700
Add security attribute process column
cgzones Sep 28, 2020
e518459
Add DiskIOMeter for IO read/write usage
cgzones Sep 13, 2020
b7f6329
Add --enable-debug configure option to enable asserts
cgzones Sep 17, 2020
d69585b
Resolve DEBUG compilation issues
cgzones Sep 17, 2020
b82a13c
Add clang analyzer CI job
cgzones Sep 21, 2020
42946ec
Introduce ARRAYSIZE
cgzones Sep 28, 2020
576b82f
Merge branch 'attr-nonnull' of https://github.com/BenBE/htop into Ben…
natoscott Oct 5, 2020
c953257
Merge pull request #205 from cgzones/arraysize
natoscott Oct 5, 2020
72613a3
Merge branch '0000/int-sizes/00' of https://github.com/mfwitten/htop …
natoscott Oct 5, 2020
90d16b6
Update copyright statement
Oct 5, 2020
079c2ab
Update License consistently to GPLv2 as per COPYING file
Oct 5, 2020
ff455b0
limit max screen title length to window width
ryenus Oct 2, 2020
7758774
Add Copyright statement to --help (needed as it has the license info)
Oct 5, 2020
49bb1b5
Assert that low value is lower than the high value in CLAMP
cgzones Oct 5, 2020
cdd3913
Merge identical declarations
cgzones Oct 5, 2020
577984d
Mark argument in Object_isA const
cgzones Oct 5, 2020
ffd90c2
Mention platform for platform specific configure options
cgzones Oct 5, 2020
d93cac1
Add a date and datetime meter (#159)
Nudin Oct 5, 2020
dc6523b
DateMeter followup
cgzones Oct 5, 2020
e9fa290
Merge branch 'update-license-and-copyright-info'
natoscott Oct 5, 2020
ad3acfc
Handle Panel_getSelected() returning NULL
cgzones Oct 5, 2020
db47207
Enable -Wcast-qual compiler warning
cgzones Oct 4, 2020
db159e7
Enclose CLAMP macro arguments in parentheses
cgzones Oct 6, 2020
3653ee3
Drop redundant cast to same type
cgzones Oct 6, 2020
954d6c1
Simplify statm parsing and document unused fields
cgzones Sep 28, 2020
fbf6424
Option to set initial filter
layderv Oct 6, 2020
769df60
Set a -dev version to bug reports show a useful version and not the l…
Oct 7, 2020
1704c29
Use memmove for Vector_take
BenBE Oct 6, 2020
1640513
Replace copy loop by memmove in Vector_insert
BenBE Oct 6, 2020
08d85e6
Mark Object classes and Object class fields const
cgzones Oct 4, 2020
ba282cf
Mark Object instances const
cgzones Oct 5, 2020
2970cae
Handle parsing envID & VPid from process status file
BenBE Sep 30, 2020
4a78f4b
Some more locations for ARRAYSIZE
BenBE Oct 3, 2020
32a2caa
use 'w' for command wrapping as 'M' is already used
ryenus Oct 7, 2020
7fa0f19
Merge branch 'master' of https://github.com/ryenus/htop
Oct 9, 2020
41eea8a
Mark process argument of Process_isThread const
cgzones Oct 7, 2020
f4439b1
Makefile sort correction
cgzones Oct 8, 2020
e5fdb80
Fix Hashtable_put to allow storing the same pointer
StoneBam Oct 8, 2020
79ad39c
Mark Object pointer to _display function const
cgzones Oct 6, 2020
f8b9ced
OpenFilesScreen update
cgzones Oct 7, 2020
55eafd3
Add conf*/ and callgrind.out.* to list of ignored files
BenBE Oct 11, 2020
fc301b7
Compress size of default FunctionBar
cgzones Oct 7, 2020
b47bc66
Add key to pause process list updates
cgzones Oct 5, 2020
6014800
Centralise fault handling
BenBE Oct 3, 2020
25022c2
Read CPU count every cycle to avoid issues when HT/SMT mode changes
cgzones Sep 22, 2020
0b9a001
Meter: use explicit type for drawData
cgzones Oct 2, 2020
9f5b50e
CPUMeter: avoid crashes and leaks in case the CPU count changes
cgzones Sep 23, 2020
5cc20e7
Settings: do not save initial cpu count
cgzones Sep 23, 2020
7af0665
Mark remaining classes const
cgzones Oct 13, 2020
59edb2e
Enclose macro argument in parentheses
cgzones Oct 13, 2020
1df7fa3
Misc CRT cleanup
cgzones Oct 5, 2020
898a690
Do not hard-code line numbers in help screen building code
cgzones Oct 12, 2020
2f9381d
Keep building on errors
BenBE Oct 15, 2020
bfa7d1f
Mark search parameter in Vector_indexOf const
cgzones Oct 14, 2020
3c08fa3
Keep building on errors
cgzones Oct 15, 2020
846fe8a
Mark Vector parameter const for non-modifying functions
cgzones Oct 15, 2020
1d00893
Automatically detect if backtrace(3) needs -lexecinfo
cgzones Oct 15, 2020
af4f58d
Misc conversion fixes
cgzones Oct 15, 2020
d744dac
Add SELinuxMeter
cgzones Oct 7, 2020
783be77
Do not use extra starttime process field on Linux
cgzones Oct 12, 2020
a63cfc8
Refactor generating starttime string into Process class
cgzones Oct 13, 2020
e9246ab
Misc Vector updates
cgzones Oct 15, 2020
a802961
Generalize Meter value colors for IO
cgzones Oct 16, 2020
7cd093c
Add NetworkIOMeter
cgzones Oct 8, 2020
c6f04a9
Move xAsprintf, xSnprintf and xStrdup to StringUtils.h
BenBE Sep 19, 2020
872e542
Rename StringUtils.[ch] to XUtils.[ch]
BenBE Oct 14, 2020
5e4b182
Combine XAlloc.[ch] into XUtils.[ch]
BenBE Oct 14, 2020
c138d14
Release old memory on error
BenBE Oct 15, 2020
8154325
Fix misaligned access inside taskstats structure
BenBE Oct 17, 2020
4dfedd3
Fix various file descriptor leaks
BenBE Oct 17, 2020
3e5bc03
Ensure full initialization of all fields
BenBE Oct 17, 2020
8534dcb
Merge branch 'strace-leaks' of BenBE/htop
Oct 18, 2020
8c93f31
Merge branch 'misaligned-struct-access' of BenBE/htop
Oct 18, 2020
29346d0
Provide basic configuration for IWYU
BenBE Sep 19, 2020
0f52629
Make all required includes explicit
BenBE Sep 19, 2020
0db398d
Allow low and high value of CLAMP to be equal
cgzones Oct 18, 2020
3618774
Cache PAGE_SIZE
cgzones Oct 15, 2020
96e2a42
Continue to update generic data in paused mode
cgzones Oct 13, 2020
577416d
Assert allocating non-zero size memory
cgzones Oct 5, 2020
4c66eb6
XUtils string related updates
cgzones Oct 3, 2020
2d57d28
Merge branch 'cache_pagesize' of cgzones/htop
Oct 20, 2020
475fd1e
Merge branch 'help_lines' of https://github.com/cgzones/htop
Oct 20, 2020
a0fb6e3
Merge branch 'number-cpus-from-zero' of zevweiss/htop
Oct 20, 2020
9f1a9ab
Merge branch 'header_pause' of cgzones/htop
Oct 20, 2020
0ea18a6
Merge branch 'Xalloc_Cleanup' of cgzones/htop
Oct 20, 2020
0c54309
Merge branch 'screenshot' of nzbart/htop
Oct 20, 2020
dea19b6
s390x support for travis
srajmane Oct 20, 2020
f8208f2
Drop tabs in source indentions
cgzones Oct 20, 2020
803234a
update Github CI
cgzones Oct 20, 2020
8a08a32
IWYU update
cgzones Oct 19, 2020
45a2208
Increase print buffer in NetworkIOMeter_display
cgzones Oct 20, 2020
7429c22
Drop unnecessary cast
cgzones Oct 20, 2020
e12d48a
Fix wrong strncmp replacement
cgzones Oct 20, 2020
f8bd5ac
Merge branch 'Fix wrong strncmp replacement' of cgzones/htop
Oct 20, 2020
b08b255
Drop unused Platform functions Platform_setTasksValues
cgzones Oct 21, 2020
11bf7be
Mark user field of Process const
cgzones Oct 21, 2020
0ae2bb1
Add process environment for FreeBSD
overhacked Oct 23, 2020
94e32cf
Simplify environment-reading code
overhacked Oct 26, 2020
167adc0
Parse POWER_SUPPLY_CAPACITY
jpalus Oct 22, 2020
f757810
Improve handling of no data in Disk and Network IO Meters
cgzones Oct 20, 2020
72103e9
Hold only a const version of the ProcessList in Meters
cgzones Oct 21, 2020
7109172
Mark process parameter of Process_writeField consistently const
cgzones Oct 21, 2020
4eb4439
Hold only a const version of Settings in Process
cgzones Oct 21, 2020
a3bb7cb
Hold only a const version of Settings in ProcessList
cgzones Oct 21, 2020
c98d457
Refactor code for reading process environment from procfs
BenBE Oct 26, 2020
1533ea8
Drop duplicate and always true condition
cgzones Oct 27, 2020
27870bd
Drop unneeded variablw initialization and reduce scope
cgzones Oct 27, 2020
ac2b07e
Avoid some unnecessary casts and mark some not changing variables const
cgzones Oct 27, 2020
059810c
Drop always true condition
cgzones Oct 27, 2020
e89b289
Drop duplicate assignment
cgzones Oct 27, 2020
cf1a9ec
Refactor LinuxProcessList_readSmapsFile to work line-oriented
BenBE Oct 27, 2020
61bae4c
Unify function argument names
cgzones Oct 27, 2020
8c1f5c5
Enclose macro arguments in parentheses
cgzones Oct 27, 2020
7019949
Implement RichString_setLen as function
cgzones Oct 27, 2020
6b3dbd5
Implement IncSet_filter as function
cgzones Oct 27, 2020
d33b2be
Implement LinuxProcess_effectiveIOPriority as function
cgzones Oct 27, 2020
76797f8
Implement Process_isUserlandThread as function
cgzones Oct 27, 2020
887dfde
Implement Process_getParentPid and Process_isChildOf as functions
cgzones Oct 27, 2020
6375df4
Simplify RichString_begin
cgzones Oct 28, 2020
03b773b
Small ListItem update
cgzones Oct 18, 2020
ddbb0c2
Add HTOP_$platform defines to config.h header
cgzones Oct 29, 2020
88eec2d
FreeBSD: rework tty process column
cgzones Oct 21, 2020
c91061c
FreeBSD: Platform update
cgzones Oct 21, 2020
c2fdfd9
FreeBSD: implement Platform_getDiskIO()
cgzones Oct 21, 2020
97ea45c
FreeBSD: update ProcessList
cgzones Oct 21, 2020
049046c
FreeBSD: update Process
cgzones Oct 21, 2020
bbf0105
Add compat wrapper for fstatat
cgzones Oct 26, 2020
dde71c6
Highlight new and old processes (#74)
adsr Oct 31, 2020
de884d1
Documentation on the repository style guide
BenBE Oct 31, 2020
6787c43
Merge branch 'source-format' of BenBE/htop
Oct 31, 2020
59ef15b
Fix segmentation fault when column name is NULL.
Oct 30, 2020
43d274a
Use integer type for item count instead of char
cgzones Oct 29, 2020
ab17ef4
Zram Meter feature
KnightMurloc Sep 22, 2020
2a9e8ca
Add SystemdMeter
cgzones Oct 7, 2020
15652e7
Enclose macro arguments in parentheses
cgzones Oct 31, 2020
a83f515
Address items from review
adsr Nov 1, 2020
0c19088
Handle data wraparounds in IO Meters
cgzones Nov 2, 2020
742e610
Merge branch 'wrap' of cgzones/htop
Nov 2, 2020
0806a79
Assert Vector_get returns an object
cgzones Oct 31, 2020
7ab0915
Remove unnecessary trailing semicolon on macros
BenBE Oct 31, 2020
c790b6a
Remove accidental syntax collision
BenBE Oct 31, 2020
db0a139
Convert addattrstr to static inline function
BenBE Oct 31, 2020
1877325
Spacing after keywords (#define)
BenBE Oct 31, 2020
0a51eae
Spacing after keywords (while)
BenBE Oct 31, 2020
374edb9
Spacing after keywords (if)
BenBE Oct 31, 2020
adf797c
Spacing after keywords (for)
BenBE Oct 31, 2020
493217e
Fix indentation to 3 spaces
BenBE Oct 31, 2020
9a16b10
Make scope of match macro symmetric
BenBE Oct 31, 2020
b23f823
Whitespace and indentation issues
BenBE Oct 31, 2020
61e14d4
Spacing around operators
BenBE Oct 31, 2020
4586951
Embracing branches
BenBE Nov 1, 2020
0d64ca9
Wrap inline structure definitions
BenBE Nov 1, 2020
1c060a9
Avoid RichString_beginAllocated being ammendable
BenBE Nov 2, 2020
cb8bb12
Shorten initializer
BenBE Nov 2, 2020
0e922d4
Integrate NAN check into assignment
BenBE Nov 2, 2020
e7b95fe
Remove unnecessary braces
BenBE Nov 2, 2020
84dad4c
Implement screen for active file locks
StoneBam Oct 9, 2020
2d6da2e
Add compat wrapper for readlinkat
BenBE Oct 29, 2020
1876305
Split platform dependent parts for file locks screen
BenBE Nov 11, 2020
d431786
Split data array for file lock information into separate fields
BenBE Nov 13, 2020
9e976b8
Merge pull request #239 from StoneBam/list-locks
BenBE Nov 14, 2020
da2dcf9
Remove duplicate test for NUL
Nov 15, 2020
bb908f3
Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBE
Nov 15, 2020
f2b2735
Resolve merge conflicts, merge #229 "Add SystemdMeter" from @cgzones
Nov 15, 2020
d785b1b
Fixup of SystemdMeter merge
cgzones Nov 15, 2020
397b5c4
Introduce spaceship comparison for Processes
cgzones Nov 4, 2020
42073ba
Use uid_t type for Process_getuid
cgzones Nov 4, 2020
9131732
Mark ProcessList_keyAt argument const
cgzones Nov 4, 2020
9f67b95
Mark local functions static
cgzones Nov 4, 2020
ad72b74
Drop hideThreads Setting
cgzones Nov 15, 2020
f856fe6
Early skip non-directories when searching for process information
cgzones Nov 15, 2020
0411fdb
Use spaceship comparison for TTYs
cgzones Nov 15, 2020
0951090
Merge branch 'hili-new-old' of adsr/htop into highlight-new-old-proce…
Nov 16, 2020
8f2d129
Apply patch from BenBE as per https://github.com/htop-dev/htop/pull/2…
Nov 16, 2020
19868a3
Fix whitespace before comma in the new color definitions
Nov 16, 2020
8bc083c
Merge branch 'highlight-new-old-processes'
Nov 16, 2020
309f1d7
hwloc = (portable) HardWare LOCality, not related to lock
Nov 16, 2020
a8a723f
Add debug state to the configure report (thanks @benbe for the idea)
Nov 16, 2020
15eab20
Add process column for normalized CPU usage
cgzones Oct 30, 2020
7914ec2
Hashtable update
cgzones Oct 21, 2020
307c34b
Hashtable: use dynamic growth and use primes as size
cgzones Oct 22, 2020
351f93e
Merge individual Battery.[ch] files into Platform.[ch]
natoscott Nov 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ charset = utf-8
[*.{c,h}]
indent_style = space
indent_size = 3
trim_trailing_whitespace = true
105 changes: 105 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: CI

on: [ push, pull_request ]

jobs:
build-ubuntu-latest-minimal-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get install libncursesw5-dev
- name: Bootstrap
run: ./autogen.sh
- name: Configure
run: ./configure --enable-werror --enable-linux-affinity --disable-taskstats --disable-unicode
- name: Build
run: make -k
- name: Distcheck
run: make distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-werror --enable-linux-affinity --disable-taskstats --disable-unicode"

build-ubuntu-latest-minimal-clang:
runs-on: ubuntu-latest
env:
CC: clang-10
steps:
- uses: actions/checkout@v2
- name: install clang repo
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main' -y
sudo apt-get update -q
- name: Install Dependencies
run: sudo apt-get install clang-10 libncursesw5-dev
- name: Bootstrap
run: ./autogen.sh
- name: Configure
run: ./configure --enable-werror --enable-linux-affinity --disable-taskstats --disable-unicode
- name: Build
run: make -k
- name: Distcheck
run: make distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-werror --enable-linux-affinity --disable-taskstats --disable-unicode"

build-ubuntu-latest-full-featured-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get install libncursesw5-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev
- name: Bootstrap
run: ./autogen.sh
- name: Configure
run: ./configure --enable-werror --enable-openvz --enable-cgroup --enable-vserver --enable-ancient-vserver --enable-taskstats --enable-unicode --enable-hwloc --enable-setuid --enable-delayacct
- name: Build
run: make -k
- name: Distcheck
run: make distcheck DISTCHECK_CONFIGURE_FLAGS='--enable-werror --enable-openvz --enable-cgroup --enable-vserver --enable-ancient-vserver --enable-taskstats --enable-unicode --enable-hwloc --enable-setuid --enable-delayacct'

build-ubuntu-latest-full-featured-clang:
runs-on: ubuntu-latest
env:
CC: clang-10
steps:
- uses: actions/checkout@v2
- name: install clang repo
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main' -y
sudo apt-get update -q
- name: Install Dependencies
run: sudo apt-get install clang-10 libncursesw5-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev
- name: Bootstrap
run: ./autogen.sh
- name: Configure
run: ./configure --enable-werror --enable-openvz --enable-cgroup --enable-vserver --enable-ancient-vserver --enable-taskstats --enable-unicode --enable-hwloc --enable-setuid --enable-delayacct
- name: Build
run: make -k
- name: Distcheck
run: make distcheck DISTCHECK_CONFIGURE_FLAGS='--enable-werror --enable-openvz --enable-cgroup --enable-vserver --enable-ancient-vserver --enable-taskstats --enable-unicode --enable-hwloc --enable-setuid --enable-delayacct'

build-ubuntu-latest-clang-analyzer:
runs-on: ubuntu-latest
env:
CC: clang-11
steps:
- uses: actions/checkout@v2
- name: install clang repo
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main' -y
sudo apt-get update -q
- name: Install Dependencies
run: sudo apt-get install clang-11 clang-tools-11 libncursesw5-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev
- name: Bootstrap
run: ./autogen.sh
- name: Configure
run: scan-build-11 -analyze-headers --status-bugs ./configure --enable-debug --enable-werror --enable-openvz --enable-cgroup --enable-vserver --enable-ancient-vserver --enable-taskstats --enable-unicode --enable-hwloc --enable-setuid --enable-delayacct
- name: Build
run: scan-build-11 -analyze-headers --status-bugs make -j"$(nproc)"

whitespace_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: check-whitespaces
run: git diff-tree --check $(git hash-object -t tree /dev/null) HEAD
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ htop
*.h.gch
*/.dirstamp

# automake/autoconf related files
.deps/
Makefile
Makefile.in
INSTALL
aclocal.m4
autom4te.cache/
compile
conf*/
config.guess
config.h
config.h.in
Expand All @@ -40,3 +42,6 @@ ltmain.sh
m4/
missing
stamp-h1

# files related to valgrind/callgrind
callgrind.out.*
17 changes: 16 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,22 @@ compiler:
- gcc

os:
- freebsd
- linux
- osx

script: ./autogen.sh && ./configure && make
arch:
- amd64
- s390x

before_script:
if [[ ${TRAVIS_CPU_ARCH} == 's390x' ]]; then
sudo apt-get update && sudo apt-get install -y libncursesw5-dev ;
fi

script:
- ./autogen.sh
# clang might warn about C11 generic selections in isnan()
- CFLAGS=-Wno-c11-extensions ./configure --enable-werror
- make -k
- CFLAGS=-Wno-c11-extensions make distcheck DISTCHECK_CONFIGURE_FLAGS=--enable-werror
Loading