[Bug 261826] emulators/joytran: Maintainer fix variable set but not used warning / error

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 09 Feb 2022 13:02:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261826

            Bug ID: 261826
           Summary: emulators/joytran: Maintainer fix variable set but not
                    used warning / error
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: beyert@cs.ucr.edu

Created attachment 231675
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=231675&action=edit
fix variable set but not used warning / error

Fixes build error for emulators/joytran on modern compilers by not initializing
variable delay to 0 when the initialized value will never be used.

The error is as follows:
*  error: variable 'delay' set but not used [-Werror,-Wunused-but-set-variable]

-- 
You are receiving this mail because:
You are the assignee for the bug.