From 7878215c195395aa0056764a0297877272fbf4ff Mon Sep 17 00:00:00 2001 From: Stu Black Date: Sun, 5 Apr 2026 12:57:39 -0400 Subject: [PATCH 1/2] Fix false positive improper_ctypes warnings for structs that are opaque types from C. --- WINGs/wings-rs/src/lib.rs | 1 + compile_output.txt | 45 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 compile_output.txt diff --git a/WINGs/wings-rs/src/lib.rs b/WINGs/wings-rs/src/lib.rs index db2efa54..31ba6e97 100644 --- a/WINGs/wings-rs/src/lib.rs +++ b/WINGs/wings-rs/src/lib.rs @@ -1,3 +1,4 @@ +#[allow(improper_ctypes)] #[allow(non_camel_case_types)] #[allow(non_snake_case)] #[allow(non_upper_case_globals)] diff --git a/compile_output.txt b/compile_output.txt new file mode 100644 index 00000000..fc0b3b5b --- /dev/null +++ b/compile_output.txt @@ -0,0 +1,45 @@ +make all-recursive +make[1]: Entering directory '/home/stu/projects/vitrine/wmaker' +Making all in wrlib +make[2]: Entering directory '/home/stu/projects/vitrine/wmaker/wrlib' +make all-recursive +make[3]: Entering directory '/home/stu/projects/vitrine/wmaker/wrlib' +Making all in . +make[4]: Entering directory '/home/stu/projects/vitrine/wmaker/wrlib' +make[4]: Nothing to be done for 'all-am'. +make[4]: Leaving directory '/home/stu/projects/vitrine/wmaker/wrlib' +Making all in po +make[4]: Entering directory '/home/stu/projects/vitrine/wmaker/wrlib/po' +make[4]: Nothing to be done for 'all'. +make[4]: Leaving directory '/home/stu/projects/vitrine/wmaker/wrlib/po' +make[3]: Leaving directory '/home/stu/projects/vitrine/wmaker/wrlib' +make[2]: Leaving directory '/home/stu/projects/vitrine/wmaker/wrlib' +Making all in wutil-rs +make[2]: Entering directory '/home/stu/projects/vitrine/wmaker/wutil-rs' +cargo build +make[2]: Leaving directory '/home/stu/projects/vitrine/wmaker/wutil-rs' +Making all in WINGs +make[2]: Entering directory '/home/stu/projects/vitrine/wmaker/WINGs' +Making all in WINGs +make[3]: Entering directory '/home/stu/projects/vitrine/wmaker/WINGs/WINGs' +../../script/replace-ac-keywords.sh \ + --header "../../config.h" \ + --filter "USE_PANGO" \ + -o WINGsP.h WINGsP.h.in +make all-am +make[4]: Entering directory '/home/stu/projects/vitrine/wmaker/WINGs/WINGs' +make[4]: Nothing to be done for 'all-am'. +make[4]: Leaving directory '/home/stu/projects/vitrine/wmaker/WINGs/WINGs' +make[3]: Leaving directory '/home/stu/projects/vitrine/wmaker/WINGs/WINGs' +Making all in wings-rs +make[3]: Entering directory '/home/stu/projects/vitrine/wmaker/WINGs/wings-rs' +bindgen ../WINGs/WINGsP.h \ +--no-recursive-allowlist \ +--allowlist-type "^W_.+|^WM(View|Array|DragOperationType|Point|Data|OpenPanel|SavePanel|HashTable|DraggingInfo|SelectionProcs|Rect|EventProc|Widget|Size|Color|Pixmap|FilePanel)|R(Context|ContextAttributes|Image|RenderingMode|ScalingFilter|StdColormapMode|ImageFormat|Color)|_WINGsConfiguration" \ +--allowlist-type "^WM(FontPanel|Screen|Button)" \ +--allowlist-function "^WMCreateScreen|^WM(Get|Show)FontPanel|^WMCreateCommandButton|^WM(Initialize|Release)Application|^WMScreenMainLoop|^WMHandleEvent" \ +-o src/WINGsP.rs -- \ +-I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread \ +-I../../wrlib \ +-I.. && ./patch_WINGsP.sh src/WINGsP.rs +cargo build -- 2.39.5 From 5883e0d8a350820683c132cbf1abdec6138f1147 Mon Sep 17 00:00:00 2001 From: Stu Black Date: Sun, 5 Apr 2026 19:56:09 -0400 Subject: [PATCH 2/2] Eliminate accidentally commited temporary file. --- compile_output.txt | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 compile_output.txt diff --git a/compile_output.txt b/compile_output.txt deleted file mode 100644 index fc0b3b5b..00000000 --- a/compile_output.txt +++ /dev/null @@ -1,45 +0,0 @@ -make all-recursive -make[1]: Entering directory '/home/stu/projects/vitrine/wmaker' -Making all in wrlib -make[2]: Entering directory '/home/stu/projects/vitrine/wmaker/wrlib' -make all-recursive -make[3]: Entering directory '/home/stu/projects/vitrine/wmaker/wrlib' -Making all in . -make[4]: Entering directory '/home/stu/projects/vitrine/wmaker/wrlib' -make[4]: Nothing to be done for 'all-am'. -make[4]: Leaving directory '/home/stu/projects/vitrine/wmaker/wrlib' -Making all in po -make[4]: Entering directory '/home/stu/projects/vitrine/wmaker/wrlib/po' -make[4]: Nothing to be done for 'all'. -make[4]: Leaving directory '/home/stu/projects/vitrine/wmaker/wrlib/po' -make[3]: Leaving directory '/home/stu/projects/vitrine/wmaker/wrlib' -make[2]: Leaving directory '/home/stu/projects/vitrine/wmaker/wrlib' -Making all in wutil-rs -make[2]: Entering directory '/home/stu/projects/vitrine/wmaker/wutil-rs' -cargo build -make[2]: Leaving directory '/home/stu/projects/vitrine/wmaker/wutil-rs' -Making all in WINGs -make[2]: Entering directory '/home/stu/projects/vitrine/wmaker/WINGs' -Making all in WINGs -make[3]: Entering directory '/home/stu/projects/vitrine/wmaker/WINGs/WINGs' -../../script/replace-ac-keywords.sh \ - --header "../../config.h" \ - --filter "USE_PANGO" \ - -o WINGsP.h WINGsP.h.in -make all-am -make[4]: Entering directory '/home/stu/projects/vitrine/wmaker/WINGs/WINGs' -make[4]: Nothing to be done for 'all-am'. -make[4]: Leaving directory '/home/stu/projects/vitrine/wmaker/WINGs/WINGs' -make[3]: Leaving directory '/home/stu/projects/vitrine/wmaker/WINGs/WINGs' -Making all in wings-rs -make[3]: Entering directory '/home/stu/projects/vitrine/wmaker/WINGs/wings-rs' -bindgen ../WINGs/WINGsP.h \ ---no-recursive-allowlist \ ---allowlist-type "^W_.+|^WM(View|Array|DragOperationType|Point|Data|OpenPanel|SavePanel|HashTable|DraggingInfo|SelectionProcs|Rect|EventProc|Widget|Size|Color|Pixmap|FilePanel)|R(Context|ContextAttributes|Image|RenderingMode|ScalingFilter|StdColormapMode|ImageFormat|Color)|_WINGsConfiguration" \ ---allowlist-type "^WM(FontPanel|Screen|Button)" \ ---allowlist-function "^WMCreateScreen|^WM(Get|Show)FontPanel|^WMCreateCommandButton|^WM(Initialize|Release)Application|^WMScreenMainLoop|^WMHandleEvent" \ --o src/WINGsP.rs -- \ --I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread \ --I../../wrlib \ --I.. && ./patch_WINGsP.sh src/WINGsP.rs -cargo build -- 2.39.5