Skip to content

Commit

Permalink
Fix more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Dec 5, 2024
1 parent 7253f2b commit dc0bbff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/examples/InteractiveStreamingExample/DecodeDASSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,19 @@ DecodeDASSource::~DecodeDASSource() {
void DecodeDASSource::Open() {

// open the file stream
ifs.open(GetName());
if (!ifs) throw JException("Unable to open '%s'", GetName().c_str());
ifs.open(GetResourceName());
if (!ifs) throw JException("Unable to open '%s'", GetResourceName().c_str());

}

void DecodeDASSource::Close() {
// Close the file/stream here.
std::cout << "Closing " << GetName() << std::endl;
std::cout << "Closing " << GetResourceName() << std::endl;
ifs.close();
}

JEventSource::Result DecodeDASSource::Emit(JEvent& event) {

// TODO: Put these somewhere that makes sense
size_t MAX_CHANNELS = 80;
size_t MAX_SAMPLES = 1024;
// open the file stream and parse the data
Expand Down
4 changes: 2 additions & 2 deletions src/libraries/JANA/Utils/JCpuInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ uint32_t GetCpuID() {
#ifdef __cpuid_count
GETCPU(cpuid);
#else // __cpuid_count
#warning __cpuid_count is not defined on this system.
// cpuid_count is not defined on this system.
return 0;
#endif // __cpuid_count
return cpuid;
// TODO: Clean this up

#else //__APPLE__
return sched_getcpu();
Expand Down

0 comments on commit dc0bbff

Please sign in to comment.