Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Refactor project directories #50

Merged
merged 11 commits into from
Aug 22, 2023
Merged

Refactor project directories #50

merged 11 commits into from
Aug 22, 2023

Conversation

stephane-caron
Copy link
Member

No description provided.

Fixes this warning:

vulp/observation/sources/tests/KeyboardTest.cpp: In member function 'virtual void vulp::observation::sources::Keyboard_ReadArrows_Test::TestBody()':
vulp/observation/sources/tests/KeyboardTest.cpp:63:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   63 |   freopen(tmpfn, "r", stdin);
      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~

FYI @boragokbakan, no big deal
Fixes the following warning:

INFO: From Compiling vulp/observation/sources/tests/KeyboardTest.cpp:
vulp/observation/sources/tests/KeyboardTest.cpp: In member function 'virtual void vulp::observation::sources::Keyboard_ReadArrows_Test::TestBody()':
vulp/observation/sources/tests/KeyboardTest.cpp:60:11: warning: 'strlen' argument missing terminating nul [-Wstringop-overread]
   60 |   tmpf << LEFT_BYTES;
      |           ^~~~~~~~~~
In file included from vulp/observation/sources/tests/KeyboardTest.cpp:19:
./vulp/observation/sources/Keyboard.h:47:25: note: referenced argument declared here
   47 | constexpr unsigned char LEFT_BYTES[] = {0x1B, 0x5B, 0x44};
      |                         ^~~~~~~~~~

FYI @boragokbakan, for this one we write in binary rather than string mode.
@stephane-caron stephane-caron merged commit d814c3e into main Aug 22, 2023
6 checks passed
@stephane-caron stephane-caron deleted the refactor/vulp_dir branch August 22, 2023 17:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant