Completely disable warning Wstack-protector.
--HG-- branch : develop
This commit is contained in:
parent
33a3c4e214
commit
9a074266b9
|
@ -264,7 +264,7 @@ GCC_DEBUG_CXXFLAGS += \
|
||||||
-Wold-style-cast \
|
-Wold-style-cast \
|
||||||
-Wconversion \
|
-Wconversion \
|
||||||
-Winit-self \
|
-Winit-self \
|
||||||
-Wstack-protector \
|
# -Wstack-protector \
|
||||||
-Wunreachable-code \
|
-Wunreachable-code \
|
||||||
-Wcast-align \
|
-Wcast-align \
|
||||||
-Wcast-qual \
|
-Wcast-qual \
|
||||||
|
@ -615,7 +615,7 @@ CLANG_DEBUG_CXXFLAGS += \
|
||||||
-Wsizeof-pointer-memaccess \
|
-Wsizeof-pointer-memaccess \
|
||||||
-Wsometimes-uninitialized \
|
-Wsometimes-uninitialized \
|
||||||
-Wsource-uses-openmp \
|
-Wsource-uses-openmp \
|
||||||
-Wstack-protector \
|
# -Wstack-protector \
|
||||||
-Wstatic-float-init \
|
-Wstatic-float-init \
|
||||||
-Wstatic-in-inline \
|
-Wstatic-in-inline \
|
||||||
-Wstatic-local-in-inline \
|
-Wstatic-local-in-inline \
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include "dxfreader.h"
|
#include "dxfreader.h"
|
||||||
#include "drw_textcodec.h"
|
#include "drw_textcodec.h"
|
||||||
#include "drw_dbg.h"
|
#include "drw_dbg.h"
|
||||||
#include "../vmisc/diagnostic.h"
|
|
||||||
|
|
||||||
bool dxfReader::readRec(int *codeData) {
|
bool dxfReader::readRec(int *codeData) {
|
||||||
// std::string text;
|
// std::string text;
|
||||||
|
@ -103,9 +102,6 @@ int dxfReader::getHandleString(){
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
QT_WARNING_PUSH
|
|
||||||
QT_WARNING_DISABLE_GCC("-Wstack-protector")
|
|
||||||
|
|
||||||
bool dxfReaderBinary::readCode(int *code) {
|
bool dxfReaderBinary::readCode(int *code) {
|
||||||
unsigned short *int16p;
|
unsigned short *int16p;
|
||||||
char buffer[2];
|
char buffer[2];
|
||||||
|
@ -124,8 +120,6 @@ bool dxfReaderBinary::readCode(int *code) {
|
||||||
return (filestr->good());
|
return (filestr->good());
|
||||||
}
|
}
|
||||||
|
|
||||||
QT_WARNING_POP
|
|
||||||
|
|
||||||
bool dxfReaderBinary::readString() {
|
bool dxfReaderBinary::readString() {
|
||||||
type = STRING;
|
type = STRING;
|
||||||
std::getline(*filestr, strData, '\0');
|
std::getline(*filestr, strData, '\0');
|
||||||
|
@ -140,9 +134,6 @@ bool dxfReaderBinary::readString(std::string *text) {
|
||||||
return (filestr->good());
|
return (filestr->good());
|
||||||
}
|
}
|
||||||
|
|
||||||
QT_WARNING_PUSH
|
|
||||||
QT_WARNING_DISABLE_GCC("-Wstack-protector")
|
|
||||||
|
|
||||||
bool dxfReaderBinary::readInt16() {
|
bool dxfReaderBinary::readInt16() {
|
||||||
type = INT32;
|
type = INT32;
|
||||||
char buffer[2];
|
char buffer[2];
|
||||||
|
@ -152,8 +143,6 @@ bool dxfReaderBinary::readInt16() {
|
||||||
return (filestr->good());
|
return (filestr->good());
|
||||||
}
|
}
|
||||||
|
|
||||||
QT_WARNING_POP
|
|
||||||
|
|
||||||
bool dxfReaderBinary::readInt32() {
|
bool dxfReaderBinary::readInt32() {
|
||||||
type = INT32;
|
type = INT32;
|
||||||
unsigned int *int32p;
|
unsigned int *int32p;
|
||||||
|
@ -188,9 +177,6 @@ bool dxfReaderBinary::readDouble() {
|
||||||
return (filestr->good());
|
return (filestr->good());
|
||||||
}
|
}
|
||||||
|
|
||||||
QT_WARNING_PUSH
|
|
||||||
QT_WARNING_DISABLE_GCC("-Wstack-protector")
|
|
||||||
|
|
||||||
//saved as int or add a bool member??
|
//saved as int or add a bool member??
|
||||||
bool dxfReaderBinary::readBool() {
|
bool dxfReaderBinary::readBool() {
|
||||||
char buffer[1];
|
char buffer[1];
|
||||||
|
@ -200,8 +186,6 @@ bool dxfReaderBinary::readBool() {
|
||||||
return (filestr->good());
|
return (filestr->good());
|
||||||
}
|
}
|
||||||
|
|
||||||
QT_WARNING_POP
|
|
||||||
|
|
||||||
bool dxfReaderAscii::readCode(int *code) {
|
bool dxfReaderAscii::readCode(int *code) {
|
||||||
std::string text;
|
std::string text;
|
||||||
std::getline(*filestr, text);
|
std::getline(*filestr, text);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user