From 0bf4b02acb37a9872e6360df4e33ebd0eef41f11 Mon Sep 17 00:00:00 2001 From: wfg <wfg@pc0098504.ornl.gov> Date: Tue, 1 Nov 2016 17:53:14 -0400 Subject: [PATCH] CPOSIX Write signature corrected to match base class CTransport Added CCFLAG -Woverloaded-virtual in Makefile. It was on in a MAC systems (maybe CLANG?), off in Ubuntu. --- Makefile | 2 +- include/transport/CPOSIX.h | 2 +- src/transport/CPOSIX.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 384c56b41..1c1e3ef4c 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ AR:=$(SYS_BIN)/ar MPICC:=$(SYS_BIN)/mpic++ LIBS:= -L$(SYS_LIB) -L$(LOCAL_LIB) -CFLAGS:=-c -Wall -O0 -g -Wpedantic -std=c++11 +CFLAGS:=-c -Wall -O0 -g -Wpedantic -Woverloaded-virtual -std=c++11 ARFLAGS:=rcs #ADIOS diff --git a/include/transport/CPOSIX.h b/include/transport/CPOSIX.h index 2c50380e6..ee6567fca 100644 --- a/include/transport/CPOSIX.h +++ b/include/transport/CPOSIX.h @@ -27,7 +27,7 @@ public: void Open( const std::string fileName, const std::string accessMode ); - void Write( CVariableBase& variable ); + void Write( const CVariableBase& variable ); void Close( ); diff --git a/src/transport/CPOSIX.cpp b/src/transport/CPOSIX.cpp index 5c399392c..87c4fb114 100644 --- a/src/transport/CPOSIX.cpp +++ b/src/transport/CPOSIX.cpp @@ -30,7 +30,7 @@ void CPOSIX::Open( const std::string fileName, const std::string accessMode ) } -void CPOSIX::Write( CVariableBase& variable ) +void CPOSIX::Write( const CVariableBase& variable ) { } -- GitLab