Skip to content

Commit a3d5815

Browse files
authored
Merge pull request #107 from njoy/bugfix/uninitialized
Adding pragma to work around GCC 'bug'.
2 parents 7f47006 + e320bac commit a3d5815

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

ReleaseNotes.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Release Notes—NJOY21
22
Given here are some release notes for NJOY21. Each release is made through a formal [Pull Request](https://github.com/njoy/NJOY21/pulls) made on GitHub. There are links in this document that point to each of those Pull Requests, where you can see in great details the changes that were made. Often the Pull Requests are made in response to an [issue](https://github.com/njoy/NJOY21/issues). In such cases, links to those issues are also given.
33

4+
## [NJOY21 1.1.1](https://github.com/njoy/NJOY21/pull/107)
5+
This update fixes an issue where GCC would complain about a "maybe" uninitialized variable in [lipservice](https://github.com/njoy/lipservice). This only happens when compiled in release mode with GCC. Using the clang/LLVM compiler does not invoke this warning/error.
6+
7+
This update address issue #106.
8+
49
## [NJOY21 1.1.0](https://github.com/njoy/NJOY21/pull/104)
510
This update moves the C++ standard to C++17; thus, a c++17-compliant compiler is needed to build NJOY21. Fortunately, C++17-compliant compilers have been available for several years.
611

src/njoy21.hpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
#include "dimwits.hpp"
1818
#include "Log.hpp"
1919
#include "utility.hpp"
20-
#include "lipservice.hpp"
20+
21+
#pragma GCC diagnostic push
22+
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
23+
#include "lipservice.hpp"
24+
#pragma GCC diagnostic pop
2125

2226
#include "njoy_c.h"
2327

src/njoy21/Version.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Version{
44
// Change whenever new capability is implemented
55
static constexpr int minorVersion{1};
66
// Change whenever merge to master branch is done
7-
static constexpr int patchVersion{0};
7+
static constexpr int patchVersion{1};
88

99
static std::string version(){
1010
return std::to_string( majorVersion ) + "." +

0 commit comments

Comments
 (0)