Commit 9bd72284 authored by Kaitlyn Lee's avatar Kaitlyn Lee
Browse files

Removed the register keyword to fix build warnings.

parent 4f8f1db3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ Copyright (C) 1999 Malin Space Science Systems. All Rights Reserved.
#include "fs.h"
#include "CheckSum.h"

uint8 CS8EAC(register uint8 *d, register uint32 l)
uint8 CS8EAC(uint8 *d, register uint32 l)
{
  /*
  * Compute the eight bit end-around-carry checksum of a data vector.
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ Copyright (C) 1999 Malin Space Science Systems. All Rights Reserved.

#include "decompNONE.h"

void decompNONE(register uint8 *curLine, register uint32 size, uint8 *code, uint8 *left, uint8 *right, BITSTRUCT *bitStuff)
void decompNONE(uint8 *curLine, uint32 size, uint8 *code, uint8 *left, uint8 *right, BITSTRUCT *bitStuff)
{
uint32 bitCount;
uint8 *data;
+8 −1
Original line number Diff line number Diff line
/*

==================================================
2018-OCT-19 Kaitlyn Lee - US Geological Survey

Removed the register keyword because it is deprecated in C++17. 
==================================================

NOTICE

The software accompanying this notice (the "Software") is provided to you
@@ -44,6 +51,6 @@ SCCSID @(#)decompNONE.h 1.1 10/04/99

#define decompNONE_h

extern void decompNONE(register uint8 *curLine, register uint32 size, uint8 *code, uint8 *left, uint8 *right, BITSTRUCT *bitStuff);
extern void decompNONE(uint8 *curLine, uint32 size, uint8 *code, uint8 *left, uint8 *right, BITSTRUCT *bitStuff);

#endif
+8 −1
Original line number Diff line number Diff line
/*

==================================================
2018-OCT-19 Kaitlyn Lee - US Geological Survey

Removed the register keyword because it is deprecated in C++17. 
================================================== 

NOTICE

The software accompanying this notice (the "Software") is provided to you
@@ -46,7 +53,7 @@ Copyright (C) 1999 Malin Space Science Systems. All Rights Reserved.

#include "decompSYNC.h"

void decompSYNC(register uint8 *curLine, register uint8 *prevLine, register uint32 size, uint16 sync, BITSTRUCT *bitStuff)
void decompSYNC(uint8 *curLine, uint8 *prevLine, uint32 size, uint16 sync, BITSTRUCT *bitStuff)
{
uint32 count;    /* Pixel counter */
uint8 *scan;    /* Pixel copying pointer */
+8 −1
Original line number Diff line number Diff line
/*

==================================================
2018-OCT-19 Kaitlyn Lee - US Geological Survey

Removed the register keyword because it is deprecated in C++17. 
==================================================

NOTICE

The software accompanying this notice (the "Software") is provided to you
@@ -44,6 +51,6 @@ SCCSID @(#)decompSYNC.h 1.1 10/04/99

#define decompSYNC_h

extern void decompSYNC(register uint8 *curLine, register uint8 *prevLine, register uint32 size, uint16 sync, BITSTRUCT *bitStuff);
extern void decompSYNC(uint8 *curLine, uint8 *prevLine, uint32 size, uint16 sync, BITSTRUCT *bitStuff);

#endif
Loading