forked from blue/squawk
cleanup some warnings suppression
This commit is contained in:
parent
5fbb03fc46
commit
23ec80ccba
26 changed files with 630 additions and 924 deletions
|
@ -37,6 +37,7 @@ set(HEADER_FILES
|
|||
info.h
|
||||
clientid.h
|
||||
trustsummary.h
|
||||
defines.h
|
||||
)
|
||||
|
||||
target_sources(squawk PRIVATE
|
||||
|
|
24
shared/defines.h
Normal file
24
shared/defines.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Squawk messenger.
|
||||
* Copyright (C) 2019 Yury Gubich <blue@macaw.me>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef SHARED_DEFINES_H
|
||||
#define SHARED_DEFINES_H
|
||||
|
||||
#define SHARED_UNUSED(x) (void)(x)
|
||||
|
||||
#endif
|
|
@ -121,6 +121,8 @@ QDataStream & Shared::Identity::operator >> (QDataStream& stream) const {
|
|||
stream << type;
|
||||
stream << language;
|
||||
stream << name;
|
||||
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream & Shared::Identity::operator << (QDataStream& stream) {
|
||||
|
@ -128,6 +130,8 @@ QDataStream & Shared::Identity::operator << (QDataStream& stream) {
|
|||
stream >> type;
|
||||
stream >> language;
|
||||
stream >> name;
|
||||
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream & operator >> (QDataStream& stream, Shared::Identity& identity) {
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#ifndef SHARED_H
|
||||
#define SHARED_H
|
||||
|
||||
#include "defines.h"
|
||||
#include "enums.h"
|
||||
#include "global.h"
|
||||
#include "icons.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue