Skip to content

Commit

Permalink
Move to #pragma warning to fix MSVC 2019 compatibility
Browse files Browse the repository at this point in the history
This isn't fully portable until MSVC 2022.

Change-Id: I4a4d50e10a13c943c30bca23dc546612c516c8d2
Reviewed-on: https://codereview.kdab.com/c/kdab/kdutils/+/137071
Tested-by: Continuous Integration <build@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
  • Loading branch information
redstrate committed Jan 24, 2024
1 parent 149f506 commit 69c0861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KDFoundation/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// TODO: Remove once downstream libs are ported to use KDUtils::Logger
#pragma once

#warning "This header is deprecated, logging.h is now under <KDUtils/logging.h>"
#pragma warning("This header is deprecated, logging.h is now under <KDUtils/logging.h>")

#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks.h>
Expand Down

0 comments on commit 69c0861

Please sign in to comment.