Skip to content

Commit

Permalink
Fix unused argument warnings on writeToBiSignal# (#2822)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonschoorl authored Oct 9, 2024
1 parent 3b755b9 commit a532ef0
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 @@ -280,8 +280,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 a532ef0

Please sign in to comment.