Skip to content

Commit ee46144

Browse files
authored
Remove unused variables (#288)
There were a couple of build warnings introduced earlier. This fixes them.
1 parent 67e4b82 commit ee46144

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_ur_driver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,11 @@ TEST_F(UrDriverTest, read_non_existing_script_file)
8181

8282
TEST_F(UrDriverTest, read_existing_script_file)
8383
{
84-
int fd = 0;
8584
char existing_script_file[] = "urscript.XXXXXX";
8685
#ifdef _WIN32
8786
# define mkstemp _mktemp_s
8887
#endif
89-
mkstemp(existing_script_file);
88+
std::ignore = mkstemp(existing_script_file);
9089

9190
std::ofstream ofs(existing_script_file);
9291
if (ofs.bad())

0 commit comments

Comments
 (0)