copilot icon indicating copy to clipboard operation
copilot copied to clipboard

`copilot-c99`: Remove unnecessary compilation flag

Open ivanperez-keera opened this issue 3 years ago • 0 comments

Description

The cabal file of copilot-c99 specifies a compiler flag --no-deprecations that is no longer necessary. It should have been removed when modules were hidden, but the flag was left behind.

Type

  • Bug: unnecessary code included in compilation options.

Additional context

None.

Requester

  • Ivan Perez

Method to check presence of bug

The following line prints found if the unnecessary flag is present in the cabal file, and nothing otherwise.

$ if [[ $(grep -re 'no-deprecations' copilot-c99/copilot-c99.cabal | grep -ve '--') ]]; then echo "found"; else echo "nothing"; fi

Expected result

The above line prints nothing.

Desired result

The above line prints nothing.

Proposed solution

Remove flag and preceding comment from cabal file.

Further notes

See issues:

  • #289
  • #272

ivanperez-keera avatar Oct 13 '22 16:10 ivanperez-keera