diff --git a/espanso-clipboard/build.rs b/espanso-clipboard/build.rs index 572013c..2c105a8 100644 --- a/espanso-clipboard/build.rs +++ b/espanso-clipboard/build.rs @@ -40,11 +40,8 @@ fn cc_config() { println!("cargo:rerun-if-changed=src/x11/native/native.c"); cc::Build::new() .cpp(true) - .include("src/x11/native/clip/clip.h") - .include("src/x11/native/clip/clip_common.h") - .include("src/x11/native/clip/clip_lock_impl.h") - .include("src/x11/native/clip/clip_x11_png.h") - .include("src/x11/native/native.h") + .include("src/x11/native/clip") + .include("src/x11/native") .file("src/x11/native/clip/clip.cpp") .file("src/x11/native/clip/clip_x11.cpp") .file("src/x11/native/clip/image.cpp") diff --git a/espanso-clipboard/src/x11/native/clip/clip_x11.cpp b/espanso-clipboard/src/x11/native/clip/clip_x11.cpp index bfcba15..563244c 100644 --- a/espanso-clipboard/src/x11/native/clip/clip_x11.cpp +++ b/espanso-clipboard/src/x11/native/clip/clip_x11.cpp @@ -691,7 +691,7 @@ private: // Calls the current m_callback() to handle the clipboard content // received from the owner. - void call_callback(xcb_get_property_reply_t* reply) { + void call_callback(__attribute__((unused)) xcb_get_property_reply_t* reply) { m_callback_result = false; if (m_callback) m_callback_result = m_callback(); @@ -918,7 +918,7 @@ private: return 0; } - void encode_data_on_demand(std::pair& e) { + void encode_data_on_demand(__attribute__((unused)) std::pair& e) { #ifdef HAVE_PNG_H if (e.first == get_atom(MIME_IMAGE_PNG)) { assert(m_image.is_valid());