refactor(confighttp): HTML page handlers into generic getPage function (#4645)
This commit is contained in:
@@ -3,11 +3,25 @@
|
||||
* @brief Common declarations.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
// Suppress false positive warnings in Boost.Asio on some GCC versions (particularly Arch Linux)
|
||||
// These are known false positives in Boost.Asio's basic_resolver_results.hpp
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||
#endif
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <src/globals.h>
|
||||
#include <src/logging.h>
|
||||
#include <src/platform/common.h>
|
||||
|
||||
// Restore warnings after including problematic headers
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
// XFail/XPass pattern implementation (similar to pytest)
|
||||
namespace test_utils {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user