We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a8d750e + 4a4f296 commit 3f02978Copy full SHA for 3f02978
2 files changed
include/Gamepad.hpp
@@ -12,7 +12,7 @@ namespace raylib {
12
*/
13
class Gamepad {
14
public:
15
- Gamepad(int gamepadNumber = 0) { set(gamepadNumber); }
+ Gamepad(int gamepadNumber = 0) : number(gamepadNumber) {};
16
int number;
17
18
GETTERSETTER(int, Number, number)
tests/CMakeLists.txt
@@ -8,7 +8,7 @@ add_executable(raylib_cpp_test raylib_cpp_test.cpp)
8
if (MSVC)
9
target_compile_options(raylib_cpp_test PRIVATE /Wall /W4)
10
else()
11
- target_compile_options(raylib_cpp_test PRIVATE -Wall -Wextra -Wconversion -Wsign-conversion)
+ target_compile_options(raylib_cpp_test PRIVATE -Wall -Wextra -Wconversion -Wsign-conversion -Weffc++)
endif()
target_link_libraries(raylib_cpp_test raylib_cpp raylib)
0 commit comments