From cc7feb932c4ab7ed176301dfc21775262a831427 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 22 Oct 2022 21:01:50 -0700 Subject: [PATCH] doc: Fix a compiler warning. The `gears.share.solid_rectangle_shadow` PR was written before the warning was added. --- lib/gears/shape.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gears/shape.lua b/lib/gears/shape.lua index e6dab32f5..e9f50e8f5 100644 --- a/lib/gears/shape.lua +++ b/lib/gears/shape.lua @@ -778,6 +778,7 @@ end -- @tparam number height The shape height -- @tparam[opt=5] number x_offset The shadow area horizontal offset. -- @tparam[opt=5] number y_offset The shadow area vertical offset. +-- @noreturn function module.solid_rectangle_shadow(cr, w, h, x_offset, y_offset) x_offset, y_offset = x_offset or 5, y_offset or 5 w, h = w - math.abs(x_offset), h - math.abs(y_offset)