Skip to content

Commit 42f85f4

Browse files
committed
Replaced ReSharper CppParameterNeverUsed warning mute with proper [[maybe_unused]] annotations
1 parent 315aa8f commit 42f85f4

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

SDL3_GPU/src/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ void CreateDepthTexture(const math::uint2& newSize, MyAppState* myAppState) {
254254
myAppState->depthTexture = SDL_CreateGPUTexture(myAppState->device, &depthTextureCreateInfo);
255255
}
256256

257-
// ReSharper disable twice CppParameterNeverUsed
258-
SDL_AppResult SDL_AppInit(void** appstate, int argc, char* argv[]) {
257+
SDL_AppResult SDL_AppInit(void** appstate, [[maybe_unused]] int argc, [[maybe_unused]] char* argv[]) {
259258
MyAppState* myAppState = new MyAppState();
260259
*appstate = myAppState;
261260

Vulkan_Helpers/src/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ constexpr bool debug_mode = false;
1515
constexpr bool debug_mode = true;
1616
#endif
1717

18-
// ReSharper disable twice CppParameterNeverUsed
19-
SDL_AppResult SDL_AppInit(void** appstate, int argc, char* argv[]) {
18+
SDL_AppResult SDL_AppInit(void** appstate, [[maybe_unused]] int argc, [[maybe_unused]] char* argv[]) {
2019
const std::string name = QUOTE(MYPROJECT_NAME);
2120
VulkanEngine* vulkanEngine = new VulkanEngine(name, debug_mode);
2221
*appstate = vulkanEngine;

Vulkan_Raw/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct MyAppState {
1010
SDL_Renderer* renderer = nullptr;
1111
};
1212

13-
SDL_AppResult SDL_AppInit(void** appstate, int argc, char* argv[]) {
13+
SDL_AppResult SDL_AppInit(void** appstate, [[maybe_unused]] int argc, [[maybe_unused]] char* argv[]) {
1414
MyAppState* myAppState = new MyAppState();
1515

1616
if (!SDL_CreateWindowAndRenderer(myAppState->name.c_str(), 1280, 720, 0, &myAppState->window, &myAppState->renderer)) {

0 commit comments

Comments
 (0)