Skip to content

Commit 1fcff35

Browse files
committed
unused [skip ci]
1 parent acea1ab commit 1fcff35

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tools/matchcompiler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def _compilePattern(self, pattern, nr, varid,
206206
arg2 = ', const int varid'
207207

208208
ret = '// pattern: ' + pattern + '\n'
209-
ret += 'static inline bool match' + \
209+
ret += '__attribute__((unused)) static inline bool match' + \
210210
str(nr) + '(' + tokenType + '* tok' + arg2 + ') {\n'
211211
returnStatement = 'return false;\n'
212212

@@ -290,7 +290,7 @@ def _compileFindPattern(self, pattern, findmatchnr, endToken, varId):
290290
more_args += ', int varid'
291291

292292
ret = '// pattern: ' + pattern + '\n'
293-
ret += 'template<class T> static inline T * findmatch' + \
293+
ret += 'template<class T> __attribute__((unused)) static inline T * findmatch' + \
294294
str(findmatchnr) + '(T * start_tok' + more_args + ') {\n'
295295
ret += ' for (; start_tok' + endCondition + \
296296
'; start_tok = start_tok->next()) {\n'
@@ -373,7 +373,7 @@ def _compileVerifyTokenMatch(
373373
if varId:
374374
more_args = ', const int varid'
375375

376-
ret = 'static inline bool match_verify' + \
376+
ret = '__attribute__((unused)) static inline bool match_verify' + \
377377
str(verifyNumber) + '(const Token *tok' + more_args + ') {\n'
378378

379379
origMatchName = 'Match'
@@ -509,7 +509,7 @@ def _compileVerifyTokenFindMatch(
509509
if varId:
510510
more_args += ', const int varid'
511511

512-
ret = 'template < class T > static inline T * findmatch_verify' + \
512+
ret = 'template < class T > __attribute__((unused)) static inline T * findmatch_verify' + \
513513
str(verifyNumber) + '(T * tok' + more_args + ') {\n'
514514

515515
origFindMatchName = 'findmatch'

0 commit comments

Comments
 (0)