Fix build due to unused field

This commit is contained in:
Ted John committed 2022-05-17 19:27:39 +01:00
1 parent 71a6e2bf74
commit 7af322f8eb
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -328,7 +328,7 @@ else ()
# Compiler flags
set(DEBUG_LEVEL 0 CACHE STRING "Select debug level for compilation. Use value in range 0–3.")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstrict-aliasing -Werror -Wundef -Wmissing-declarations -Winit-self -Wall -Wextra -Wshadow")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas -Wno-missing-braces -Wno-comment -Wnonnull -Wno-unused-parameter")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas -Wno-missing-braces -Wno-comment -Wnonnull -Wno-unused-parameter -Wno-attributes")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG=${DEBUG_LEVEL}")
if(APPLE)
+1 -1
View File
@@ -1244,7 +1244,7 @@ declare global {
interface TrackIterator {
/**
* The position and direction of the current track segment. Usually this is the position of the
* element of the segment, however for some segments, it may be offset.
* first element of the segment, however for some segments, it may be offset.
*/
readonly position: CoordsXYZD;
@@ -24,7 +24,7 @@ namespace OpenRCT2::Scripting
private:
CoordsXYZD _position;
track_type_t _type;
RideId _ride;
[[maybe_unused]] RideId _ride;
public:
static std::shared_ptr<ScTrackIterator> FromElement(const CoordsXY& position, int32_t elementIndex);