Skip to content

Commit

Permalink
Making it compile with -pedantic. Removing p4est_base.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Markert committed Apr 23, 2024
1 parent 27be701 commit 5a3f57d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 174 deletions.
1 change: 0 additions & 1 deletion p4est/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ libt8_internal_headers += \
p4est/p4est_to_p8test.h

libt8_compiled_sources += \
p4est/p4est_base.c \
p4est/p4est_bits.c \
p4est/p4est_connectivity.c \
p4est/p8est_bits.c \
Expand Down
165 changes: 0 additions & 165 deletions p4est/p4est_base.c

This file was deleted.

10 changes: 2 additions & 8 deletions p4est/p4est_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@
#define P4EST_BASE_H

/* Set configs as given by the t8code build system. */
#ifndef T8_CMAKE_BUILD
#include <t8_config.h>
#endif
#include <t8.h>

#if (defined(T8_ENABLE_MPI))
# define P4EST_ENABLE_MPI T8_ENABLE_MPI
Expand All @@ -53,7 +51,7 @@
# define P4EST_PACKAGE_VERSION "2.8.6"

/* Emulating p4est package id with the t8code package id. */
# define p4est_package_id t8_package_id
# define p4est_package_id t8_get_package_id ()

#include <sc_config.h>
#if \
Expand Down Expand Up @@ -340,10 +338,6 @@ void P4EST_LERRORF (const char *fmt, ...)
#define P4EST_NOTICE P4EST_STATISTICS
#define P4EST_NOTICEF P4EST_STATISTICSF

/* extern declarations */
/** the libsc package id for p4est (set in p4est_init()) */
extern int p4est_package_id;

static inline void
p4est_log_indent_push (void)
{
Expand Down

0 comments on commit 5a3f57d

Please sign in to comment.