Open alex-tee opened 2 years ago
also getting more issues with -Werror=conversion
/usr/include/graphene-1.0/graphene-rect.h:51:40: エラー: conversion from ‘int’ to ‘float’ may change value [-Werror=conversion]
51 | (graphene_rect_t) { .origin = { .x = (_x), .y = (_y) }, .size = { .width = (_w), .height = (_h) } }
although this is probably the fault of my own source code when using the macros
EDIT: pls ignore this, this was my own fault
https://github.com/alex-tee/graphene-test
here is a simple meson project to reproduce it, just run meson build
and meson compile -C build
and you should get this error
The short answer is: do not enable compiler errors with external libraries that have made no guarantee whatsoever about those same errors.
The longer answer is: patches welcome.
Hey ebassi,
What would a PR look like here that you would deem acceptable?
I'm also more than happy to work around this downstream if you're not ready to accept a patch at this time.
I would accept a pull request that fixed the header files, assuming it's not going to make them completely unreadable.
Experienced behavior
Expected behavior
No error
Steps to reproduce
-Werror=double-promotion
to CFLAGS and include<gtk/gtk.h>
Operating system in use
arch linux (parabola)
SIMD implementation in use
not sure but this might say:
/usr/include/graphene-1.0/graphene-simd4x4f.h
Graphene version
1.10.8