Menu

#5415 Fix type-conversion warnings in parser and lexer

Fixed
Dan Eble
Enhancement
2018-09-24
2018-09-08
Dan Eble
No

Fix type-conversion warnings in parser and lexer

in two commits:

  • lexer: move repeated code into a skip_chars() method. In passing,
    fix type-conversion warnings produced by g++ 8.0.1 on x86_64.

  • fix some parsing type-conversion warnings observed with g++ 8.0.1 on
    x86_64

http://codereview.appspot.com/348990043

Discussion

  • Anonymous

    Anonymous - 2018-09-09
    • Description has changed:

    Diff:

    
    
    • Needs: -->
    • Patch: new --> review
     
  • Anonymous

    Anonymous - 2018-09-09

    Passes make, make check and a full make doc.

     
  • Dan Eble

    Dan Eble - 2018-09-09
     
  • Anonymous

    Anonymous - 2018-09-10
    • Needs: -->
    • Patch: new --> review
    • Type: --> Enhancement
     
  • Anonymous

    Anonymous - 2018-09-10

    Passes make, make check and a full make doc.

     
  • Anonymous

    Anonymous - 2018-09-13
    • Patch: review --> countdown
     
  • Anonymous

    Anonymous - 2018-09-13

    Patch on countdown for Sept 16th

     
  • Anonymous

    Anonymous - 2018-09-16
    • Patch: countdown --> push
     
  • Anonymous

    Anonymous - 2018-09-16

    Patch counted down - please push.

     
  • Dan Eble

    Dan Eble - 2018-09-24
    • labels: --> Fixed_2_21_0
    • status: Started --> Fixed
    • Patch: push -->
     
  • Dan Eble

    Dan Eble - 2018-09-24

    commit aa84b5db2a2313f4eed217736294eaa9a2a9fe38 (HEAD -> pushed/issue-5415-warnings-lexer-parser, origin/staging)
    Author: Dan Eble nine.fierce.ballads@gmail.com
    Date: Sat Sep 8 14:52:03 2018 -0400

    Issue 5415/2: lexer: move repeated code into a skip_chars() method
    
    In passing, fix type-conversion warnings produced by g++ 8.0.1 on
    x86_64.
    

    commit 2ec8daced78ac5e40f8b38da38c0fb37296ea3bf
    Author: Dan Eble nine.fierce.ballads@gmail.com
    Date: Sat Sep 8 09:44:19 2018 -0400

    Issue 5415/1: fix some parsing type-conversion warnings
    observed with g++ 8.0.1 on x86_64
    
    
    1. Remove a condition in MYBACKUP that serves no current purpose.  The
    compiler warned about using an enum in bool context.
    
    
    2. Change the result of Keyword_table::lookup() from vsize to int.
    The source data is an int and the caller was converting the vsize back
    to int.  The compiler warned about the latter.
    
     
Monday.com Logo