Skip to content

Commit a0496ac

Browse files
committed
Suppress g++ pedantry
1 parent 4a1ccba commit a0496ac

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

include/internal/basic_csv_parser.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,15 @@ namespace csv {
182182
this->data_pos_++;
183183
}
184184

185-
// Intentionally fall through to handle the newline in the next case
186-
// If CR (old Mac style newline), fallthrough handles it
185+
#if defined(__GNUC__) || defined(__clang__)
186+
#pragma GCC diagnostic push
187+
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
188+
#endif
187189

188190
case ParseFlags::NEWLINE:
191+
#if defined(__GNUC__) || defined(__clang__)
192+
#pragma GCC diagnostic pop
193+
#endif
189194
this->data_pos_++;
190195

191196
// End of record. Preserve intentional empty fields such as

0 commit comments

Comments
 (0)