Browse Source

Fixes depracation warning in jsoncpp

master
Eyck Jentzsch 5 months ago
parent
commit
7ad172a3e8
2 changed files with 4 additions and 1 deletions
  1. +1
    -1
      .clang-format
  2. +3
    -0
      src/jsoncpp.cpp

+ 1
- 1
.clang-format View File

@ -39,7 +39,7 @@ BreakConstructorInitializersBeforeComma: true
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
CommentPragmas: '^( IWYU pragma:| @suppress)'
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 4

+ 3
- 0
src/jsoncpp.cpp View File

@ -68,7 +68,10 @@ license you like.
// End of content of file: LICENSE
// //////////////////////////////////////////////////////////////////////
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "json/json.h"
#pragma GCC diagnostic pop
#ifndef JSON_IS_AMALGAMATION
#error "Compile with -I PATH_TO_JSON_DIRECTORY"

Loading…
Cancel
Save