Skip to content
Snippets Groups Projects
Commit 8f045ea1 authored by Jorrit Fahlke's avatar Jorrit Fahlke
Browse files

[ConfigParser] Don't warn about deprecated configparser.hh when compiling

configparser.cc.

Rationale: don't spam the user with warnings he can do nothing about.  He will
still get warnings when he uses the ConfigParser in is his own programs, and
we (as developers) will have to remove configparser.cc the same instant we
remove configparser.hh anyway.

[[Imported from SVN: r6356]]
parent a9e047d8
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,8 @@
#include "config.h"
#endif
#define SILENCE_CONFIGPARSER_HH_DEPRECATION
#include "configparser.hh"
#include <cstdlib>
......
......@@ -3,10 +3,12 @@
#ifndef DUNE_CONFIGPARSER_HH
#define DUNE_CONFIGPARSER_HH
#ifndef SILENCE_CONFIGPARSER_HH_DEPRECATION
#warning This file has been deprecated in dune-common 2.1, and will most likely\
be removed in dune-common 2.2. In its place, use parametertree.hh to keep\
hierarchical string-based data, and parametertreeparser.hh to read such data\
from files and streams.
#endif // !SILENCE_CONFIGPARSER_HH_DEPRECATION
#include <iostream>
#include <istream>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment