Removed non-standard code annotations with __attribute__
This commit is contained in:
parent
24739869ba
commit
37fefe3479
|
@ -26,7 +26,6 @@
|
||||||
#include "translationhandler.h"
|
#include "translationhandler.h"
|
||||||
|
|
||||||
|
|
||||||
static void unused() __attribute__((unused));
|
|
||||||
// Provide own translations for standard buttons. This (garbage) code is needed to enforce them to appear in .ts files even after "lupdate gui.pro"
|
// Provide own translations for standard buttons. This (garbage) code is needed to enforce them to appear in .ts files even after "lupdate gui.pro"
|
||||||
static void unused()
|
static void unused()
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,9 +23,7 @@
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#ifndef __GNUC__
|
|
||||||
#define __attribute__(A)
|
|
||||||
#endif
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,6 @@
|
||||||
# include <crtdbg.h>
|
# include <crtdbg.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __GNUC__
|
|
||||||
#define __attribute__(A)
|
|
||||||
#endif
|
|
||||||
#include <string>
|
#include <string>
|
||||||
static const std::string emptyString;
|
static const std::string emptyString;
|
||||||
|
|
||||||
|
|
|
@ -1045,7 +1045,7 @@ private:
|
||||||
* Send error message to error logger about internal bug.
|
* Send error message to error logger about internal bug.
|
||||||
* @param tok the token that this bug concerns.
|
* @param tok the token that this bug concerns.
|
||||||
*/
|
*/
|
||||||
void cppcheckError(const Token *tok) const __attribute__((noreturn));
|
void cppcheckError(const Token *tok);
|
||||||
|
|
||||||
/** Whether iName is a keyword as defined in http://en.cppreference.com/w/c/keyword and http://en.cppreference.com/w/cpp/keyword*/
|
/** Whether iName is a keyword as defined in http://en.cppreference.com/w/c/keyword and http://en.cppreference.com/w/cpp/keyword*/
|
||||||
bool isReservedName(const std::string& iName) const;
|
bool isReservedName(const std::string& iName) const;
|
||||||
|
|
|
@ -31,10 +31,6 @@
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
|
||||||
#ifndef __GNUC__
|
|
||||||
#define __attribute__(A)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class Settings;
|
class Settings;
|
||||||
class SymbolDatabase;
|
class SymbolDatabase;
|
||||||
class TimerResults;
|
class TimerResults;
|
||||||
|
@ -585,7 +581,7 @@ private:
|
||||||
* Send error message to error logger about internal bug.
|
* Send error message to error logger about internal bug.
|
||||||
* @param tok the token that this bug concerns.
|
* @param tok the token that this bug concerns.
|
||||||
*/
|
*/
|
||||||
void cppcheckError(const Token *tok) const __attribute__((noreturn));
|
void cppcheckError(const Token *tok) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setup links for tokens so that one can call Token::link().
|
* Setup links for tokens so that one can call Token::link().
|
||||||
|
@ -600,10 +596,10 @@ private:
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/** Syntax error */
|
/** Syntax error */
|
||||||
void syntaxError(const Token *tok) const __attribute__((noreturn));
|
void syntaxError(const Token *tok) const;
|
||||||
|
|
||||||
/** Syntax error. Example: invalid number of ')' */
|
/** Syntax error. Example: invalid number of ')' */
|
||||||
void syntaxError(const Token *tok, char c) const __attribute__((noreturn));
|
void syntaxError(const Token *tok, char c) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue