resurrecting-open-source-projects / scrot

SCReenshOT - command line screen capture utility
Other
511 stars 51 forks source link

ci: switch to alpine-latest for gcc -fanalyzer #332

Closed N-R-K closed 1 year ago

N-R-K commented 1 year ago

ubuntu lags behind too much and gcc's -fanalyzer is better on the newers versions.

ref: https://developers.redhat.com/articles/2023/05/31/improvements-static-analysis-gcc-13-compiler#

N-R-K commented 1 year ago

Okay, so removing the backslashes fixed the yaml issue but now we're picking up warnings due to libbsd...

In file included from /usr/include/bsd/sys/cdefs.h:47,
                 from /usr/include/bsd/err.h:29,
                 from src/note.c:30:
/usr/include/sys/cdefs.h:4:2: error: #warning usage of non-standard #include <sys/cdefs.h> is deprecated [-Werror=cpp]
    4 | #warning usage of non-standard #include <sys/cdefs.h> is deprecated
      |  ^~~~~~~

Considering either going with -Wno-cpp or just going to standalone sys/queue and skipping libbsd for the gcc-fanalyzer run.