Merge branch 'ci-clang-build' into 'main'

ci: Add a clang build

See merge request GNOME/gtk!5987
This commit is contained in:
Matthias Clasen 2023-05-18 19:10:52 +00:00
commit cd9c277820
4 changed files with 25 additions and 5 deletions

View File

@ -123,6 +123,26 @@ release-build:
- LD_LIBRARY_PATH=${CI_PROJECT_DIR}/_install/lib64 meson compile -C _build_hello
- .gitlab-ci/run-tests.sh _build x11
fedora-clang:
extends: .build-fedora-default
stage: build
needs: []
variables:
EXTRA_MESON_FLAGS: "--buildtype=release"
script:
- .gitlab-ci/show-info-linux.sh
- export PATH="$HOME/.local/bin:$PATH"
- export CC=clang
- meson subprojects download
- meson subprojects update --reset
- meson setup
${COMMON_MESON_FLAGS}
${EXTRA_MESON_FLAGS}
${BACKEND_FLAGS}
${FEATURE_FLAGS}
_build
- meson compile -C _build
fedora-mingw64:
extends: .build-fedora-default
stage: build

View File

@ -88,7 +88,7 @@ gsk_gl_texture_library_real_compact (GskGLTextureLibrary *self,
GskGLTextureAtlasEntry *entry;
GHashTableIter iter;
guint dropped = 0;
guint atlased = 0;
G_GNUC_UNUSED guint atlased = 0;
g_hash_table_iter_init (&iter, self->hash_table);
while (g_hash_table_iter_next (&iter, NULL, (gpointer *)&entry))

View File

@ -450,7 +450,7 @@ gsk_vulkan_glyph_cache_begin_frame (GskVulkanGlyphCache *cache)
GHashTableIter iter;
GlyphCacheKey *key;
GskVulkanCachedGlyph *value;
guint dropped = 0;
G_GNUC_UNUSED guint dropped = 0;
cache->timestamp++;

View File

@ -96,9 +96,9 @@ struct _GtkCupsRequest
char *password;
char *username;
int own_http : 1;
int need_password : 1;
int need_auth_info : 1;
unsigned int own_http : 1;
unsigned int need_password : 1;
unsigned int need_auth_info : 1;
char **auth_info_required;
char **auth_info;
GtkCupsPasswordState password_state;