Completely disable warning Wstack-protector.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-07-06 15:45:58 +03:00
parent 33a3c4e214
commit 9a074266b9
2 changed files with 2 additions and 18 deletions

View File

@ -264,7 +264,7 @@ GCC_DEBUG_CXXFLAGS += \
-Wold-style-cast \
-Wconversion \
-Winit-self \
-Wstack-protector \
# -Wstack-protector \
-Wunreachable-code \
-Wcast-align \
-Wcast-qual \
@ -615,7 +615,7 @@ CLANG_DEBUG_CXXFLAGS += \
-Wsizeof-pointer-memaccess \
-Wsometimes-uninitialized \
-Wsource-uses-openmp \
-Wstack-protector \
# -Wstack-protector \
-Wstatic-float-init \
-Wstatic-in-inline \
-Wstatic-local-in-inline \

View File

@ -17,7 +17,6 @@
#include "dxfreader.h"
#include "drw_textcodec.h"
#include "drw_dbg.h"
#include "../vmisc/diagnostic.h"
bool dxfReader::readRec(int *codeData) {
// std::string text;
@ -103,9 +102,6 @@ int dxfReader::getHandleString(){
return res;
}
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wstack-protector")
bool dxfReaderBinary::readCode(int *code) {
unsigned short *int16p;
char buffer[2];
@ -124,8 +120,6 @@ bool dxfReaderBinary::readCode(int *code) {
return (filestr->good());
}
QT_WARNING_POP
bool dxfReaderBinary::readString() {
type = STRING;
std::getline(*filestr, strData, '\0');
@ -140,9 +134,6 @@ bool dxfReaderBinary::readString(std::string *text) {
return (filestr->good());
}
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wstack-protector")
bool dxfReaderBinary::readInt16() {
type = INT32;
char buffer[2];
@ -152,8 +143,6 @@ bool dxfReaderBinary::readInt16() {
return (filestr->good());
}
QT_WARNING_POP
bool dxfReaderBinary::readInt32() {
type = INT32;
unsigned int *int32p;
@ -188,9 +177,6 @@ bool dxfReaderBinary::readDouble() {
return (filestr->good());
}
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wstack-protector")
//saved as int or add a bool member??
bool dxfReaderBinary::readBool() {
char buffer[1];
@ -200,8 +186,6 @@ bool dxfReaderBinary::readBool() {
return (filestr->good());
}
QT_WARNING_POP
bool dxfReaderAscii::readCode(int *code) {
std::string text;
std::getline(*filestr, text);