]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
latest from Russ with conflict resolution in nhttp_tables.cc
authorTom Peters <thopeter@cisco.com>
Thu, 18 Sep 2014 20:01:11 +0000 (16:01 -0400)
committerTom Peters <thopeter@cisco.com>
Thu, 18 Sep 2014 20:01:11 +0000 (16:01 -0400)
1  2 
src/service_inspectors/nhttp_inspect/nhttp_tables.cc

index 9e9af68dcedeea725f27ac6f0a1b5bfa56350e6b,5da586d864319f8208b342d6cc393e2e525afd86..3615f822c51af10b9da685d31ed978c11e14d695
@@@ -178,6 -178,13 +178,13 @@@ const HeaderNormalizer NHttpMsgHeadShar
  const HeaderNormalizer NHttpMsgHeadShared::NORMALIZER_TRANSCODE {NORM_ENUM64, true, norm_remove_lws, nullptr,
     norm_to_lower, nullptr, norm_seq_str_code, NHttpMsgHeadShared::trans_code_list};
  
 -// but we're going to play compilation roullete and hopes this works.
+ #if defined(__clang__)
+ // designated initializers are not supported in C++11.  However,
++// but we're going to play compilation roulette and hopes this works.
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wc99-extensions"
+ #endif
  const HeaderNormalizer* const NHttpMsgHeadShared::header_norms[HEAD__MAXVALUE] = { [0] = &NORMALIZER_NIL,
      [HEAD__OTHER] = &NORMALIZER_BASIC,
      [HEAD_CACHE_CONTROL] = &NORMALIZER_BASIC,
      [HEAD_TRUE_CLIENT_IP] = &NORMALIZER_BASIC
  };
  
 -const int32_t NHttpMsgHeadShared::num_norms = HEAD__MAXVALUE-1;
 -
+ #if defined(__clang__)
+ #pragma clang diagnostic pop
+ #endif
  const RuleMap NHttpModule::nhttp_events[] =
  {
      { EVENT_ASCII,                           "(nhttp_inspect) ascii encoding" },