1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Fix build due to unused field

This commit is contained in:
Ted John
2022-05-14 16:02:04 +01:00
parent 71a6e2bf74
commit 7af322f8eb
3 changed files with 3 additions and 3 deletions

View File

@@ -328,7 +328,7 @@ else ()
# Compiler flags
set(DEBUG_LEVEL 0 CACHE STRING "Select debug level for compilation. Use value in range 03.")
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)

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;

View File

@@ -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);