Skip to content

Commit

Permalink
Fix unused argument warnings on writeToBiSignal# (#2822) (#2824)
Browse files Browse the repository at this point in the history
(cherry picked from commit a532ef0)

Co-authored-by: Leon Schoorl <[email protected]>
  • Loading branch information
mergify[bot] and leonschoorl authored Oct 9, 2024
1 parent 6c9585a commit 1487755
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FIXED: Unused argument warnings on writeToBiSignal#
5 changes: 2 additions & 3 deletions clash-prelude/src/Clash/Signal/BiSignal.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-|
Copyright : (C) 2017, Google Inc.
2019, Myrtle Software Ltd
2022-2023, QBayLogic B.V.
2022-2024, QBayLogic B.V.
License : BSD2 (see the file LICENSE)
Maintainer : QBayLogic B.V. <[email protected]>
Expand Down Expand Up @@ -277,8 +277,7 @@ writeToBiSignal#
-> Signal d Bool
-> Signal d (BitVector n)
-> BiSignalOut ds d n
-- writeToBiSignal# = writeToBiSignal#
writeToBiSignal# _ maybeSignal _ _ = BiSignalOut [maybeSignal]
writeToBiSignal# bIn maybeSignal wEn val = BiSignalOut [bIn `seq` wEn `seq` val `seq` maybeSignal]
-- See: https://github.com/clash-lang/clash-compiler/pull/2511
{-# CLASH_OPAQUE writeToBiSignal# #-}
{-# ANN writeToBiSignal# hasBlackBox #-}
Expand Down

0 comments on commit 1487755

Please sign in to comment.