Skip to content

Commit 56a3ae3

Browse files
committed
hide #pragma mark's away from the compiler
1 parent a46ae7f commit 56a3ae3

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

CMakeLists.txt

-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ if(NOT CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD LESS 11)
2020
set(CMAKE_CXX_STANDARD 11)
2121
endif()
2222

23-
# Suppression of "unknown pragma" warning on GCC
24-
if(CMAKE_COMPILER_IS_GNUCXX)
25-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas") # Code uses #pragma mark
26-
endif()
27-
2823
#============================================================================
2924
# Sources & headers
3025
#============================================================================

docopt.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ std::ostream& docopt::operator<<(std::ostream& os, value const& val)
5454
return os;
5555
}
5656

57+
#if 0
5758
#pragma mark -
5859
#pragma mark Parsing stuff
60+
#endif
5961

6062
class Tokens {
6163
public:

docopt_private.h

+2
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,10 @@ namespace docopt {
322322
bool match(PatternList& left, std::vector<std::shared_ptr<LeafPattern>>& collected) const override;
323323
};
324324

325+
#if 0
325326
#pragma mark -
326327
#pragma mark inline implementations
328+
#endif
327329

328330
inline std::vector<LeafPattern*> Pattern::leaves()
329331
{

docopt_util.h

+2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ namespace std {
1919
#include <regex>
2020
#endif
2121

22+
#if 0
2223
#pragma mark -
2324
#pragma mark General utility
25+
#endif
2426

2527
namespace {
2628
bool starts_with(std::string const& str, std::string const& prefix)

0 commit comments

Comments
 (0)