Skip to content

Commit

Permalink
[xlsb] comment due to gcc 12 false positive. Was not used.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Aug 17, 2024
1 parent cc3c4e6 commit d8e3bb4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/xlsb_funs.h
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,10 @@ void ProductVersion(std::istream& sas, bool swapit, bool debug) {
version = readbin(version, sas, swapit); // 3586 - x14?
flags = readbin(flags, sas, swapit); // 0

FRTVersionFields *fields = (FRTVersionFields *)&flags;

/* unused and commented due to a false positive in GCC12 reported on CRAN */
// FRTVersionFields *fields = (FRTVersionFields *)&flags;
// if (fields->reserved != 0) Rcpp::stop("product version reserved not 0");

if (debug) Rprintf("ProductVersion: %d: %d: %d\n", version, fields->product, fields->reserved);
// if (debug) Rprintf("ProductVersion: %d: %d: %d\n", version, fields->product, fields->reserved);
}

std::vector<int> UncheckedRfX(std::istream& sas, bool swapit) {
Expand Down

0 comments on commit d8e3bb4

Please sign in to comment.