소스 검색

dselect: Do not forward declare ‘enum quitaction’

Standard C++ does not allow declaring an incomplete enum type. And the
enum is already declared in «dselect/dselect.h» which gets included
first.

This was spotted by a run with the clang static analyzer.
Guillem Jover 16 년 전
부모
커밋
49453ca056
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      dselect/bindings.h

+ 0 - 2
dselect/bindings.h

@@ -21,8 +21,6 @@
 #ifndef BINDINGS_H
 #ifndef BINDINGS_H
 #define BINDINGS_H
 #define BINDINGS_H
 
 
-enum quitaction;
-
 struct keybindings {
 struct keybindings {
   struct interpretation;
   struct interpretation;