Skip to content

Commit 9fc25f3

Browse files
authored
Merge pull request #216 from davidrohr/PR
Suppress compiler warning
2 parents c78ef02 + a6ae1a1 commit 9fc25f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/testNetDispatch.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ int main() {
2020

2121
while (1) {
2222
char buf[1024];
23-
fgets(buf, sizeof(buf), stdin);
23+
char* r = fgets(buf, sizeof(buf), stdin);
24+
(void)r; // Suppress compiler warning
2425
if (feof(stdin)) {
2526
break;
2627
}

0 commit comments

Comments
 (0)