Move qt_noop() into a separate header

This was the last function left in qglobal.h.

Task-number: QTBUG-106154
Task-number: QTBUG-99313
Change-Id: I6b16744b2811b7ca9837742610d72b85da7c76b2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Ivan Solovev 2022-09-30 14:01:29 +02:00
parent e54ff7754d
commit 9bdc338056
3 changed files with 15 additions and 1 deletions

View File

@ -81,6 +81,7 @@ qt_internal_add_module(Core
global/qtconfigmacros.h
global/qtdeprecationmarkers.h
global/qtenvironmentvariables.cpp global/qtenvironmentvariables.h
global/qtnoop.h
global/qtpreprocessorsupport.h
global/qtrace_p.h
global/qtresource.h

View File

@ -27,7 +27,7 @@
#include <QtCore/qtpreprocessorsupport.h>
inline void qt_noop(void) {}
#include <QtCore/qtnoop.h>
#include <QtCore/qsystemdetection.h>
#include <QtCore/qprocessordetection.h>

View File

@ -0,0 +1,13 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QTNOOP_H
#define QTNOOP_H
#if 0
#pragma qt_sync_stop_processing
#endif
inline void qt_noop(void) {}
#endif // QTNOOP_H