Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

configure.in

Blame
    • Peter Eisentraut's avatar
      4cb82469
      Cast result of copyObject() to correct type · 4cb82469
      Peter Eisentraut authored
      
      copyObject() is declared to return void *, which allows easily assigning
      the result independent of the input, but it loses all type checking.
      
      If the compiler supports typeof or something similar, cast the result to
      the input type.  This creates a greater amount of type safety.  In some
      cases, where the result is assigned to a generic type such as Node * or
      Expr *, new casts are now necessary, but in general casts are now
      unnecessary in the normal case and indicate that something unusual is
      happening.
      
      Reviewed-by: default avatarMark Dilger <hornschnorter@gmail.com>
      4cb82469
      History
      Cast result of copyObject() to correct type
      Peter Eisentraut authored
      
      copyObject() is declared to return void *, which allows easily assigning
      the result independent of the input, but it loses all type checking.
      
      If the compiler supports typeof or something similar, cast the result to
      the input type.  This creates a greater amount of type safety.  In some
      cases, where the result is assigned to a generic type such as Node * or
      Expr *, new casts are now necessary, but in general casts are now
      unnecessary in the normal case and indicate that something unusual is
      happening.
      
      Reviewed-by: default avatarMark Dilger <hornschnorter@gmail.com>