util: silence const warnings with optionparser

We don't use the warned-about part of optionparser's interface
anyways.

Change-Id: I42c4714e4dce4112ea5b6cfb5159ed8b62d4c418
This commit is contained in:
Horst Schirmeier
2013-08-23 10:32:38 +02:00
parent 79ff417e9b
commit ff1ceeddac

View File

@ -4,10 +4,17 @@
#include <vector>
#include <string>
#include <assert.h>
// Ignore warnings regarding const removal, we don't use this part of
// optionparser's interface anyways. (Works with GCC 4.6 and above, throws a
// warning with earlier versions. The reset to "warning" is necessary for
// those earlier versions.)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-qual"
#include "optionparser/optionparser.h"
#include "optionparser/optionparser_ext.hpp"
#pragma GCC diagnostic warning "-Wcast-qual"
#pragma GCC diagnostic pop
namespace fail {
/**