Merge pull request #2 from rockerbacon/clean-warnings

Add virtual destructor to ButtonAction + extra warning flag
master
pixl 5 years ago committed by GitHub
commit d5c5c9040c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      CMakeLists.txt
  2. 4
      src/logid/Actions.h

@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 3.10)
project(logiops)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -Wall -Wextra")
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_subdirectory(src/logid)
add_subdirectory(src/logid)

@ -37,6 +37,8 @@ class Device;
class ButtonAction
{
public:
virtual ~ButtonAction() = default;
Action type;
virtual ButtonAction* copy(Device* dev) = 0;
virtual void press() = 0;
@ -136,4 +138,4 @@ private:
int dpi_inc;
};
#endif //ACTIONS_H
#endif //ACTIONS_H

Loading…
Cancel
Save