Skip to content

Commit 0d06698

Browse files
committed
Changed compile switches
1 parent bec681f commit 0d06698

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed

mapcodelib/basics.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,6 @@
2121

2222
#define mapcode_dataversion "2.3.0" // coords 2.0.2
2323

24-
static const char *ALIASES =
25-
"2UK=2UT,2CG=2CT,1GU=GUM,1UM=UMI,1VI=VIR,1AS=ASM,1MP=MNP,4CX=CXR,4CC=CCK,4NF=NFK,4HM=HMD,COL=5CL,"
26-
"5ME=5MX,MEX=5MX,5AG=AGU,5BC=BCN,5BS=BCS,5CM=CAM,5CS=CHP,5CH=CHH,5CO=COA,5DF=DIF,5DG=DUR,5GT=GUA,"
27-
"5GR=GRO,5HG=HID,5JA=JAL,5MI=MIC,5MO=MOR,5NA=NAY,5NL=NLE,5OA=OAX,5PB=PUE,5QE=QUE,5QR=ROO,5SL=SLP,"
28-
"5SI=SIN,5SO=SON,5TB=TAB,5TL=TLA,5VE=VER,5YU=YUC,5ZA=ZAC,811=8BJ,812=8TJ,813=8HE,814=8SX,815=8NM,"
29-
"821=8LN,822=8JL,823=8HL,831=8SH,832=8JS,833=8ZJ,834=8AH,835=8FJ,836=8JX,837=8SD,841=8HA,842=8HB,"
30-
"843=8HN,844=8GD,845=8GX,846=8HI,850=8CQ,851=8SC,852=8GZ,853=8YN,854=8XZ,861=8SN,862=8GS,863=8QH,"
31-
"864=8NX,865=8XJ,871=TWN,891=HKG,892=MAC,8TW=TWN,8HK=HKG,8MC=MAC,BEL=7BE,KIR=7KI,PRI=7PO,CHE=7CH,"
32-
"KHM=7KM,PER=7PM,TAM=7TT,0US=USA,0AU=AUS,0RU=RUS,0CN=CHN,TAA=SHN,ASC=SHN,DGA=IOT,WAK=MHL,JTN=UMI,"
33-
"MID=1HI,1PR=PRI,5TM=TAM,TAM=TAM,2OD=2OR,";
34-
35-
3624
#define MAX_CCODE 533 // nr of territories in this database
3725

3826
static const char *entity_iso = ""

unittest/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
To build the unit tests, execute:
44

55
cd unittest
6-
gcc -O unittest.c -o unittest
6+
gcc -O unittest.c -lm -lpthread -o unittest
77

88
(Or if you need to make sure there are no warnings:)
99

10-
gcc -Wall -Wstrict-prototypes -Wshorten-64-to-32 -O unittest.c -o unittest
10+
gcc -Wall -O unittest.c -lm -lpthread -o unittest
1111

1212
To execute the tests, simply execute:
1313

unittest/unittest.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,9 @@ struct context_test_around {
500500

501501

502502
int join_threads(pthread_t *threads, struct context_test_around *contexts, int total) {
503+
int i = 0;
503504
int nrTests = 0;
504-
for (int i = 0; i < total; ++i) {
505+
for (i = 0; i < total; ++i) {
505506
if (pthread_join(threads[i], 0)) {
506507
found_error();
507508
printf("*** ERROR *** Error joining thread %d of %d\n", i, total);

utility/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
This directory contains a Mapcode encoding/decoding utility.
44
To build the original Mapcode tool, execute:
55

6-
gcc -O mapcode.cpp -o mapcode
6+
gcc -O mapcode.cpp -lm -lpthread -o mapcode
77

88
(Or if you need to make sure there are no warnings:)
99

10-
gcc -Wall -Wstrict-prototypes -Wshorten-64-to-32 -O mapcode.cpp -o mapcode
10+
gcc -Wall -O mapcode.cpp -lm -lpthread -o mapcode
1111

1212
For help, simply execute:
1313

0 commit comments

Comments
 (0)