Skip to content

Fix for realopl-Wunused-value#160

Merged
mywave82 merged 1 commit into
adplug:masterfrom
mywave82:realopl-Wunused-value
Feb 26, 2023
Merged

Fix for realopl-Wunused-value#160
mywave82 merged 1 commit into
adplug:masterfrom
mywave82:realopl-Wunused-value

Conversation

@mywave82

Copy link
Copy Markdown
Contributor

Fix these warnings:

src/realopl.cpp: In member function ‘bool CRealopl::harddetect()’: src/realopl.cpp:49:23: warning: statement has no effect [-Wunused-value]
   49 |   # define INP(reg)   0
      |                       ^
src/realopl.cpp:95:5: note: in expansion of macro ‘INP’
   95 |     INP(adp);
      |     ^~~
src/realopl.cpp:88:19: warning: unused variable ‘adp’ [-Wunused-variable]
   88 |   unsigned short  adp = (currChip == 0 ? adlport : adlport + 2);
      |                   ^~~
src/realopl.cpp: In member function ‘void CRealopl::hardwrite(int, int)’:
src/realopl.cpp:49:23: warning: statement has no effect [-Wunused-value]
   49 |   # define INP(reg)   0
      |                       ^
src/realopl.cpp:180:5: note: in expansion of macro ‘INP’
  180 |     INP(adp);
      |     ^~~
src/realopl.cpp:49:23: warning: statement has no effect [-Wunused-value]
   49 |   # define INP(reg)   0
      |                       ^
src/realopl.cpp:185:5: note: in expansion of macro ‘INP’
  185 |     INP(adp);
      |     ^~~
src/realopl.cpp:163:18: warning: unused variable ‘adp’ [-Wunused-variable]
  163 |   unsigned short adp = (currChip == 0 ? adlport : adlport + 2);
      |                  ^~~

src/realopl.cpp: In member function ‘bool CRealopl::harddetect()’:
src/realopl.cpp:49:23: warning: statement has no effect [-Wunused-value]
   49 |   # define INP(reg)   0
      |                       ^
src/realopl.cpp:95:5: note: in expansion of macro ‘INP’
   95 |     INP(adp);
      |     ^~~
src/realopl.cpp:88:19: warning: unused variable ‘adp’ [-Wunused-variable]
   88 |   unsigned short  adp = (currChip == 0 ? adlport : adlport + 2);
      |                   ^~~
src/realopl.cpp: In member function ‘void CRealopl::hardwrite(int, int)’:
src/realopl.cpp:49:23: warning: statement has no effect [-Wunused-value]
   49 |   # define INP(reg)   0
      |                       ^
src/realopl.cpp:180:5: note: in expansion of macro ‘INP’
  180 |     INP(adp);
      |     ^~~
src/realopl.cpp:49:23: warning: statement has no effect [-Wunused-value]
   49 |   # define INP(reg)   0
      |                       ^
src/realopl.cpp:185:5: note: in expansion of macro ‘INP’
  185 |     INP(adp);
      |     ^~~
src/realopl.cpp:163:18: warning: unused variable ‘adp’ [-Wunused-variable]
  163 |   unsigned short adp = (currChip == 0 ? adlport : adlport + 2);
      |                  ^~~
@mywave82 mywave82 merged commit 54bc29a into adplug:master Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant