<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nsxiv/.woodpecker, branch master</title>
<subtitle>Nsxiv image view custom build
</subtitle>
<id>https://git.krolyxon.com/nsxiv/atom?h=master</id>
<link rel='self' href='https://git.krolyxon.com/nsxiv/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/'/>
<updated>2022-08-09T14:21:52Z</updated>
<entry>
<title>Move uncritical files into `etc/` (#350)</title>
<updated>2022-08-09T14:21:52Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-08-09T14:21:52Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=fb9686c6505475f342ad94fa5ed1351f554f97fe'/>
<id>urn:sha1:fb9686c6505475f342ad94fa5ed1351f554f97fe</id>
<content type='text'>
This is mainly just to reduce the amount of files in the project root.
The criteria of what gets into `etc/` are the following:

* The file should not be necessary for building nsxiv. This excludes the
  `icon/*` stuff since that's needed by `window.c`.
* The file shouldn't have any valid reason to stay in the project root.
  This excludes things like `README.md`, `.gitignore` etc.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/350
Reviewed-by: explosion-mental &lt;explosion-mental@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>[ci]: fix failure (#348)</title>
<updated>2022-07-29T01:37:40Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-07-29T01:37:40Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=6d8ec5aee31f8eff0288e598372ab94397741a03'/>
<id>urn:sha1:6d8ec5aee31f8eff0288e598372ab94397741a03</id>
<content type='text'>
* install unversioned `llvm` so that it pulls the latest one.
* disable `uninitvar` check on cppcheck as it catches some false positives and
  gcc/clang/clang-tidy are good at catching uninitialized variables already.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/348
Reviewed-by: explosion-mental &lt;explosion-mental@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>[ci]: use `git ls-files` for spellchecking (#345)</title>
<updated>2022-07-27T06:57:50Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-07-27T06:57:50Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=1263f23970af5fa68cdd9644469b14832d125a65'/>
<id>urn:sha1:1263f23970af5fa68cdd9644469b14832d125a65</id>
<content type='text'>
excluding the `.png` icons.

this also fixes the wrong `.patch` and `.diff` extensions checks.
no clue why we were trying to find `.patch` and `.diff` to begin with.

i think i probably copy pasted the command i tested on nsxiv-extra repo
or somewhere else without changing the extensions to `.c` and `.h`.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/345
</content>
</entry>
<entry>
<title>fix: -Wsign-compare warnings (#336)</title>
<updated>2022-07-15T20:46:23Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-07-15T20:46:23Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=c131b1ed83da70fd739aff90ea3e8e829549ff43'/>
<id>urn:sha1:c131b1ed83da70fd739aff90ea3e8e829549ff43</id>
<content type='text'>
mixing signed and unsigned types in comparison can end up having
unintended results. for example:

	if (-1 &lt; 1U)
		printf("true\n");
	else
		printf("false\n");

previously we silenced these warnings, instead just fix them properly
via necessary casting, and in cases where the value cannot be negative
(e.g width/height members) make them unsigned.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/336
Reviewed-by: explosion-mental &lt;explosion-mental@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>sort and group includes</title>
<updated>2022-06-28T19:28:06Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-06-16T07:39:03Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=b162aee497ef9be3730f59bb0c9d974171bfebee'/>
<id>urn:sha1:b162aee497ef9be3730f59bb0c9d974171bfebee</id>
<content type='text'>
* includes are sorted alphabetically

* their grouping and layout is the following:
  - nsxiv.h will be the first include
  - followed by any internal headers (e.g "commands.h" "config.h")
  - followed by system headers (&lt;stdlib.h&gt; etc)
  - followed by third party headers (X.h libwebp etc)

* also add `llvm-include-order` check to clang-tidy so that it can catch
  unsorted includes during CI.
</content>
</entry>
<entry>
<title>[ci]: check for typos via codespell (#326)</title>
<updated>2022-06-27T08:47:14Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-06-27T08:47:14Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=50f7b767c97f36ba7887d3d98d9c21e3ea5decaf'/>
<id>urn:sha1:50f7b767c97f36ba7887d3d98d9c21e3ea5decaf</id>
<content type='text'>
also fix any found issues.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/326
Reviewed-by: Berke Kocaoğlu &lt;berke.kocaoglu@metu.edu.tr&gt;
</content>
</entry>
<entry>
<title>[ci]: skip the pipeline entirely if branch isn't master</title>
<updated>2022-06-25T06:27:01Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-06-17T08:01:09Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=82487293203cf5bad77e4fc8aa4da262e7b1c049'/>
<id>urn:sha1:82487293203cf5bad77e4fc8aa4da262e7b1c049</id>
<content type='text'>
currently, it will clone the repo and then skip the step. this is
wasteful, instead skip the pipeline entirely.
</content>
</entry>
<entry>
<title>[ci]: suppress some cppcheck warnings</title>
<updated>2022-06-25T06:27:01Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-06-15T06:00:14Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=a9d2b5b088a03972908bdfd2878091b68e8bc4b0'/>
<id>urn:sha1:a9d2b5b088a03972908bdfd2878091b68e8bc4b0</id>
<content type='text'>
cppcheck warns about passing a plain NULL to construct_argv()

	main.c:254:36: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB]
	                fidx, fcnt, w, h, z, NULL);

in our case, POSIX mandates `NULL` to be defined as `(void *)0` rather
than a plain `0` [0]. and void pointers are required to have the same
representation and size as char pointers [1]. so this is not an issue we
need to worry about.

[0]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html#tag_13_47
[1]: https://port70.net/~nsz/c/c99/n1256.html#6.2.5p27
</content>
</entry>
<entry>
<title>[ci]: use cppcheck and clang-tidy for static analysis</title>
<updated>2022-06-25T06:27:01Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-06-15T05:55:16Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=f23d57d4ada2dbab52e26073d462ebee57cf53a9'/>
<id>urn:sha1:f23d57d4ada2dbab52e26073d462ebee57cf53a9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add codeberg ci and cleanup github one (#311)</title>
<updated>2022-06-16T03:08:09Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-06-16T03:08:09Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=a67665a1c1569cdc16366cf635f76eb00c96048a'/>
<id>urn:sha1:a67665a1c1569cdc16366cf635f76eb00c96048a</id>
<content type='text'>
- apt-get is slow, takes up ~1m40s just to install deps, fix it by not
  using it. instead use alpine linux for codeberg ci, which brings build
  time down to 25s.
- And since alpine uses musl, it's probably a good idea to use it on our
  ci since it might catch us using any glibc extensions. The github ci
  can keep using ubuntu.
- remove duplication of CFLAGS by having it on a separate file instead.
- remove pull_request from github ci since we no longer accept PRs
  there.

Closes: https://codeberg.org/nsxiv/nsxiv/issues/307

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/311
Reviewed-by: Berke Kocaoğlu &lt;berke.kocaoglu@metu.edu.tr&gt;
Reviewed-by: TAAPArthur &lt;taaparthur@noreply.codeberg.org&gt;
</content>
</entry>
</feed>
