Skip to content

Commit 457d684

Browse files
committed
pedantic flags
1 parent 2b76f8a commit 457d684

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Makefile.defs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ endif
4343
endif
4444
# Removed -march=native for now
4545
ifeq ($(OS), Linux)
46-
OPT+= -Wall -g
46+
OPT+= -Wall -Wpedantic -Wno-empty-translation-unit -Wno-strict-prototypes -g
4747
OPTLIB+= -Wextra
4848
LIB+= -lm -lrt
4949
endif
5050
ifeq ($(OS), Darwin)
51-
OPT+= -I/usr/local/include -Wall -g
51+
OPT+= -I/usr/local/include -Wall -Wpedantic -Wno-empty-translation-unit -Wno-strict-prototypes -g
5252
OPTLIB+= -Wextra
5353
PREDEF+= -D_APPLE
5454
LIB+= -L/usr/local/lib

src/simulation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
#ifndef SIMULATION_H
2626
#define SIMULATION_H
27-
enum REB_BINARYDATA_ERROR_CODE; // Forward declaration.
27+
#include "binarydata.h" // for enum REB_BINARYDATA_ERROR_CODE;
2828

2929
// Finds the two largest particles in the simulation. *p1 and *p2 will be set to the indices of the largest particles.
3030
void reb_simulation_two_largest_particles(struct reb_simulation* r, size_t* p1, size_t* p2);

src/simulationarchive.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define SIMULATIONARCHIVE_H
2727

2828
#include <stdint.h>
29-
enum REB_BINARYDATA_ERROR_CODE; // Forward declaration.
29+
#include "binarydata.h" // for enum REB_BINARYDATA_ERROR_CODE;
3030

3131
// Simulationarchive structure
3232
struct reb_simulationarchive{

0 commit comments

Comments
 (0)